Language
C++
Compiler
gcc 4.9.0
Options
Warnings
Optimization
Boost 1.64.0
C++1y(GNU)
-pedantic-errors
$ g++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.64.0/gcc-4.9.0/include -std=gnu++1y -pedantic-errors
Exit Code:
1
Author
anonymous
over 7 years ago
C++
gcc 4.9.0
Author
anonymous
over 7 years ago
$ g++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.64.0/gcc-4.9.0/include -std=gnu++1y -pedantic-errors
prog.cc: In function 'int main()':
prog.cc:34:12: error: use of deleted function 'd::d(d&&)'
d d1{ d{} };
^
prog.cc:27:2: note: 'd::d(d&&)' is implicitly deleted because the default definition would be ill-formed:
d(d&&) = default;
^
prog.cc:27:2: error: use of deleted function 'noncopyable::noncopyable(const noncopyable&)'
prog.cc:8:2: note: declared here
noncopyable(const noncopyable&) = delete;
^