Language
C++
Compiler
gcc 9.2.0
Options
Warnings
Boost 1.72.0
C++17
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/gcc-9.2.0/include -std=c++17
Exit Code:
1
Author
anonymous
over 5 years ago
C++
gcc 9.2.0
Author
anonymous
over 5 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/gcc-9.2.0/include -std=c++17
prog.cc: In lambda function:
prog.cc:19:43: error: invalid use of incomplete type 'class WhichType<const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&>'
19 | WhichType<decltype(std::move(v))>{};
| ^
prog.cc:8:30: note: declaration of 'class WhichType<const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&>'
8 | template <typename...> class WhichType;
| ^~~~~~~~~