Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

clang HEAD 10.0.0 (https://github.com/llvm-mirror/clang.git 65acf43270ea2894dffa0d0b292b92402f80c8cb) (https://github.com/llvm-mirror/llvm.git 2c4ca6832fa6b306ee6a7010bfb80a3f2596f824)

Options
Warnings
Boost 1.72.0
C++2a(GNU)
no pedantic

Author

anonymous

over 5 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/clang-head/include -std=gnu++2a
prog.cc:8:3: error: static_assert failed due to requirement 'std::is_same_v<long, unsigned long> || std::is_same_v<long, unsigned int>' "T must be std::uint64_t or std::uint32_t"
  static_assert(std::is_same_v<T, std::uint64_t> || std::is_same_v<T, std::uint32_t>, "T must be std::uint64_t or std::uint32_t");
  ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:20:17: note: in instantiation of template class 'MyClass<long>' requested here
  MyClass<long> c; // must not compile, T is not one of uint32_t, uint64_t
                ^
1 error generated.
Exit Code:
1