Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 4 years ago

Language

C++

Compiler

gcc HEAD 12.0.0 20210721 (experimental)

Options
Warnings
Don't Use Boost
C++17
no pedantic

Author

anonymous

almost 4 years ago

$ g++ prog.cc -Wall -Wextra -std=c++17
prog.cc: In instantiation of 'struct S<int, 1, 2>':
prog.cc:21:34:   required from here
prog.cc:14:25: error: too many initializers for 'int'
   14 |   std::vector<T<Is...>> some_vector;
      |                         ^~~~~~~~~~~
prog.cc: In instantiation of 'S<Tp, Is>::S(std::vector<Tp>) [with Tp = int; int ...Is = {1, 2}]':
prog.cc:21:37:   required from here
prog.cc:17:48: error: using invalid field 'S<Tp, Is>::some_vector'
   17 |       : some_vector(get_some_vector<Is...>(src)) {}
      |                                                ^
Exit Code:
1