Created
December 30, 2020 11:03
-
-
Save ADKaster/1282c1badc356864537621efee6884a5 to your computer and use it in GitHub Desktop.
Trait Error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FAILED: AK/Tests/CMakeFiles/TestTypeTraits.dir/TestTypeTraits.cpp.o | |
/usr/bin/c++ -I../Libraries -I../. -Wno-unknown-warning-option -Wall -Wextra -Werror -Wmissing-declarations -Wformat=2 -fdiagnostics-color=always -ftls-model=initial-exec -fconcepts -std=c++2a -MD -MT AK/Tests/CMakeFiles/TestTypeTraits.dir/TestTypeTraits.cpp.o -MF AK/Tests/CMakeFiles/TestTypeTraits.dir/TestTypeTraits.cpp.o.d -o AK/Tests/CMakeFiles/TestTypeTraits.dir/TestTypeTraits.cpp.o -c ../AK/Tests/TestTypeTraits.cpp | |
../AK/Tests/TestTypeTraits.cpp: In instantiation of ‘__test_FundamentalTypeClassification()::<lambda(AK::TypeWrapper<T>)> [with T = void*]’: | |
.././AK/TypeList.h:65:19: required from ‘constexpr void AK::for_each_type_impl(F&&, AK::IndexSequence<Indexes ...>) [with List = AK::TypeList<short unsigned int, unsigned int, long unsigned int, long long unsigned int, void*>; F = __test_FundamentalTypeClassification()::<lambda(AK::TypeWrapper<T>)>; unsigned int ...Indexes = {0, 1, 2, 3, 4}; AK::IndexSequence<Indexes ...> = AK::IntegerSequence<unsigned int, 0, 1, 2, 3, 4>]’ | |
.././AK/TypeList.h:71:29: required from ‘constexpr void AK::for_each_type(F&&) [with List = AK::TypeList<short unsigned int, unsigned int, long unsigned int, long long unsigned int, void*>; F = __test_FundamentalTypeClassification()::<lambda(AK::TypeWrapper<T>)>]’ | |
../AK/Tests/TestTypeTraits.cpp:80:5: required from here | |
../AK/Tests/TestTypeTraits.cpp:38:31: error: static assertion failed | |
38 | static_assert(Expression::value, ""); | |
| ^~~~~ | |
../AK/Tests/TestTypeTraits.cpp:42:9: note: in expansion of macro ‘STATIC_EXPECT_TRUE’ | |
42 | STATIC_EXPECT_TRUE(trait<T>); \ | |
| ^~~~~~~~~~~~~~~~~~ | |
../AK/Tests/TestTypeTraits.cpp:80:5: note: in expansion of macro ‘EXPECT_TRAIT_TRUE’ | |
80 | EXPECT_TRAIT_TRUE(IsFundamental, unsigned short, unsigned int, unsigned long, unsigned long long, void*); | |
| ^~~~~~~~~~~~~~~~~ | |
cc1plus: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics | |
ninja: build stopped: subcommand failed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment