Language
C++
Compiler
gcc HEAD 8.0.0 20170820 (experimental)
Options
Warnings
Boost 1.64.0
C++1z(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.64.0/gcc-head/include -std=gnu++1z
Exit Code:
1
Author
anonymous
over 7 years ago
C++
gcc HEAD 8.0.0 20170820 (experimental)
Author
anonymous
over 7 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.64.0/gcc-head/include -std=gnu++1z
prog.cc: In function 'int main(int, char**)':
prog.cc:41:14: warning: unused parameter 'argc' [-Wunused-parameter]
int main(int argc, char* argv[]) {
^~~~
prog.cc:41:31: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char* argv[]) {
^
prog.cc: In instantiation of 'void bar() [with T = void]':
prog.cc:56:32: recursively required by substitution of 'template<class T, template<class ...> class Op, class ... Args> struct detect<T, Op, void_t<Op<T, Args ...> >, Args ...> [with T = void; Op = CanCallBar_t; Args = {}]'
prog.cc:56:32: required from here
prog.cc:24:3: error: static assertion failed
static_assert( !std::is_void<T>::value );
^~~~~~~~~~~~~