Author
anonymous
almost 8 years ago
Language
Compiler
Options
Author
anonymous
almost 8 years ago
$
prog.cc: In function 'int main()':
prog.cc:8:65: error: invalid use of incomplete type 'struct WhichType<long int>'
WhichType<typename decltype(vec.cbegin())::difference_type>{};
^
prog.cc:4:8: note: declaration of 'struct WhichType<long int>'
struct WhichType;
^~~~~~~~~
prog.cc:9:60: error: invalid use of incomplete type 'struct WhichType<int>'
WhichType<typename decltype(vec.cbegin())::value_type>{};
^
prog.cc:4:8: note: declaration of 'struct WhichType<int>'
struct WhichType;
^~~~~~~~~
prog.cc:10:57: error: invalid use of incomplete type 'struct WhichType<const int*>'
WhichType<typename decltype(vec.cbegin())::pointer>{};
^
prog.cc:4:8: note: declaration of 'struct WhichType<const int*>'
struct WhichType;
^~~~~~~~~
prog.cc:11:59: error: invalid use of incomplete type 'struct WhichType<const int&>'
WhichType<typename decltype(vec.cbegin())::reference>{};
^
prog.cc:4:8: note: declaration of 'struct WhichType<const int&>'
struct WhichType;
^~~~~~~~~
prog.cc:12:67: error: invalid use of incomplete type 'struct WhichType<std::random_access_iterator_tag>'
WhichType<typename decltype(vec.cbegin())::iterator_category>{};
^
prog.cc:4:8: note: declaration of 'struct WhichType<std::random_access_iterator_tag>'
struct WhichType;
^~~~~~~~~
Exit Code:
1