Author
anonymous
over 7 years ago
Language
C++
Compiler
gcc 7.3.0
Options
Warnings
Optimization
Boost 1.68.0
C++17(GNU)
no pedantic
Author
anonymous
over 7 years ago
$ g++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.68.0/gcc-7.3.0/include -std=gnu++17 In file included from /opt/wandbox/gcc-7.3.0/include/c++/7.3.0/bits/move.h:54:0,
from /opt/wandbox/gcc-7.3.0/include/c++/7.3.0/bits/stl_pair.h:59,
from /opt/wandbox/gcc-7.3.0/include/c++/7.3.0/bits/stl_algobase.h:64,
from /opt/wandbox/gcc-7.3.0/include/c++/7.3.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-7.3.0/include/c++/7.3.0/type_traits: In substitution of 'template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type [with bool _Cond = false; _Tp = void]':
prog.cc:7:50: required from here
/opt/wandbox/gcc-7.3.0/include/c++/7.3.0/type_traits:2476:61: error: no type named 'type' in 'struct std::enable_if<false, void>'
using enable_if_t = typename enable_if<_Cond, _Tp>::type;
^
prog.cc: In function 'int main()':
prog.cc:17:18: error: no matching function for call to 'check_type(Cell* (*)[10][10])'
check_type(&x);
^
prog.cc:8:6: note: candidate: template<class T, class> void check_type(T)
void check_type(T t) {
^~~~~~~~~~
prog.cc:8:6: note: template argument deduction/substitution failed:
Exit Code:
1