Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 6 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20190710 (experimental)

Options
Warnings
Optimization
Boost 1.69.0
C++2a
no pedantic

Author

anonymous

almost 6 years ago

$ g++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=c++2a
prog.cc: In function 'int main()':
prog.cc:21:21: error: no match for call to '(S<>) ()'
   21 |   std::cout << comb() << '\n';
      |                     ^
prog.cc:22:22: error: no match for call to '(S<>) (int)'
   22 |   std::cout << comb(5) << '\n';
      |                      ^
prog.cc: In instantiation of 'S<Lambda_types>::S(T&& ...) [with T = {main()::<lambda()>&, main()::<lambda(int)>&}; Lambda_types = {}]':
prog.cc:19:15:   required from here
prog.cc:8:69: error: mismatched argument pack lengths while expanding 'Lambda_types'
    8 |   S(T&&... lambda_args) : Lambda_types{std::forward<T>(lambda_args)}... {} // Mistmach argument pack length !!!
      |                                                                     ^~~
Exit Code:
1