Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 4 years ago

Language

C++

Compiler

clang HEAD 13.0.0 (https://github.com/llvm/llvm-project.git c4ed142e695f14ba5675ec6d12226ee706329a0f)

Options
Warnings
Boost 1.73.0
C++2b(GNU)
no pedantic

Author

anonymous

almost 4 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=gnu++2b
prog.cc:26:17: error: ambiguous partial specializations of 'test_class<type_list<int>>'
  static_assert(test_class<type_list<int>>::value);
                ^
prog.cc:11:8: note: partial specialization matches [with T = int]
struct test_class<type_list<T>> {
       ^
prog.cc:16:8: note: partial specialization matches [with Ts = <int>]
struct test_class<type_list<Ts...>> {
       ^
prog.cc:21:8: note: partial specialization matches [with T = int]
struct test_class<type_list<T>, std::enable_if_t<std::is_same_v<T, int>>> {
       ^
1 error generated.
Exit Code:
1