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