Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
prog.cc: In instantiation of 'final_action<F>::final_action(F) [with F = int&]':
prog.cc:24:12: required from 'final_action<F> finally(F&&) [with F = int&]'
prog.cc:33:14: required from here
prog.cc:8:49: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'std::remove_reference<int&>::type' {aka 'int'}
final_action(F f) noexcept : f_(std::move(f))
^
Exit Code:
1