Language
C++
Compiler
clang 5.0.0
Options
Warnings
Boost 1.68.0
C++14
no pedantic
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/clang-5.0.0/include -std=c++14
Exit Code:
1
Author
anonymous
over 6 years ago
C++
clang 5.0.0
Author
anonymous
over 6 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/clang-5.0.0/include -std=c++14
prog.cc:5:5: error: implicit instantiation of undefined template 'WhichType<int>'
WhichType<Args...>{};
^
prog.cc:9:3: note: in instantiation of function template specialization 'foo<int>' requested here
foo(int{});
^
prog.cc:1:30: note: template is declared here
template <typename...> class WhichType;
^
1 error generated.