Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 5 years ago

Language

Compiler

Options

Author

anonymous

about 5 years ago

$
prog.cc:9:11: warning: lambda capture 'x' is not used [-Wunused-lambda-capture]
    foo([&x](){});
         ~^
prog.cc:3:13: error: cannot decompose private member '' of '(lambda at prog.cc:9:9)'
    auto&& [a] = f;
            ^
prog.cc:9:5: note: in instantiation of function template specialization 'foo<(lambda at prog.cc:9:9)>' requested here
    foo([&x](){});
    ^
prog.cc:9:11: note: implicitly declared private here
    foo([&x](){});
          ^
prog.cc:3:12: warning: unused variable '[a]' [-Wunused-variable]
    auto&& [a] = f;
           ^
2 warnings and 1 error generated.
Exit Code:
1