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:21:5: error: call to deleted function 'assign2'
    assign2<int>(r, r, r);        // ok!
    ^~~~~~~~~~~~
prog.cc:13:6: note: candidate function [with A = int, Args = <const int, const int, const int>] has been explicitly deleted
void assign2(Args& ... arguments) = delete;
     ^
prog.cc:9:6: note: candidate function [with A = int, Args = <const int &, const int &, const int &>]
void assign2(Args&& ...) {
     ^
1 error generated.
Exit Code:
1