Language
C++
Compiler
clang 3.8.1
Options
Warnings
Boost 1.67.0
C++1z(GNU)
no pedantic
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.67.0/clang-3.8.1/include -std=gnu++1z
Exit Code:
1
Author
anonymous
about 7 years ago
C++
clang 3.8.1
Author
anonymous
about 7 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.67.0/clang-3.8.1/include -std=gnu++1z
prog.cc:18:4: error: no matching constructor for initialization of 'B'
B b1 ;
^
prog.cc:8:4: note: candidate constructor not viable: requires 1 argument, but 0 were provided
B( const B& ) {} ;
^
prog.cc:20:5: error: call to implicitly-deleted default constructor of 'C'
C c1 ;
^
prog.cc:13:5: note: default constructor of 'C' is implicitly deleted because field 'b' has no default constructor
B b ;
^
2 errors generated.