Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 7 years ago

Language

Compiler

Options

Author

anonymous

over 7 years ago

$
prog.cc:16:5: error: no matching function for call to object of type '(lambda at prog.cc:7:16)'
    foo(tag<int>{});
    ^~~
prog.cc:7:16: note: candidate template ignored: substitution failure [with $0 = tag<int>]: call to function 'bar' that is neither visible in the template definition nor found by argument-dependent lookup
    auto foo = [](auto x) -> decltype(bar(x)) { return {}; };
               ^                      ~~~
1 error generated.
Exit Code:
1