Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 8 years ago

Language

Compiler

Options

Author

anonymous

over 8 years ago

$
prog.cc: In instantiation of 'main()::<lambda(auto:1&)> [with auto:1 = Thing]':
prog.cc:10:70:   required from 'decltype (declval<F>()(declval<T&>())) Something<T>::foo(F&&) [with F = main()::<lambda(auto:1&)>; T = Thing; decltype (declval<F>()(declval<T&>())) = void]'
prog.cc:23:6:   required from here
prog.cc:22:9: error: no match for 'operator++' (operand type is 'Thing')
         ++val;
         ^~~~~
Exit Code:
1