Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 8 years ago

Language

Compiler

Options

Author

anonymous

about 8 years ago

$
prog.cc:8:19: error: calling a private constructor of class 'std::__1::reference_wrapper<int>'
    opt.value() = 42;
                  ^
/opt/wandbox/clang-head/include/c++/v1/__functional_base:393:14: note: declared private here
    private: reference_wrapper(type&&); public: // = delete; // do not bind to temps
             ^
1 error generated.
Exit Code:
1