Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
prog.cc: In instantiation of 'main()::<lambda(auto:1&)> [with auto:1 = const int]':
prog.cc:12:38: required by substitution of 'template<class F> decltype (declval<F>()(declval<const int&>())) Something<int>::foo<F>(F&&) const [with F = main()::<lambda(auto:1&)>]'
prog.cc:19:6: required from here
prog.cc:18:9: error: increment of read-only reference 'val'
++val;
^~~~~
Exit Code:
1