Skip to content

std::byte not found for clang5.0 anf clang6.0 builds with -std=c++17 #695

@annagrin

Description

@annagrin

Tried to add clang5.0 and clang6.0 builds with -std=c++17 in .travil.yml, but the compilation fails due to missing std::byte. Maybe libraries update is needed as well? Would appreciate help with this! see commented out code in clang section of .travil.yml in #692

Here is the build output snippet:

[ 10%] Built target no_exception_throw_tests
Scanning dependencies of target no_exception_ensure_tests
[ 13%] Building CXX object tests/CMakeFiles/no_exception_ensure_tests.dir/no_exception_ensure_tests.cpp.o
In file included from /home/travis/build/Microsoft/GSL/tests/no_exception_ensure_tests.cpp:18:
In file included from /home/travis/build/Microsoft/GSL/include/gsl/span:21:
/home/travis/build/Microsoft/GSL/include/gsl/gsl_byte:72:12: error: no member named 'byte' in namespace 'std'

using std::byte;

      ~~~~~^

/home/travis/build/Microsoft/GSL/include/gsl/gsl_byte:73:12: error: no member named 'to_integer' in namespace 'std'

using std::to_integer;
      ~~~~~^

Metadata

Metadata

Assignees

No one assigned

    Labels

    Help WantedNeeds additional help or expertise

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions