Language
C++
Compiler
clang 8.0.0
Options
Warnings
Boost 1.71.0
C++17
-pedantic-errors
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.71.0/clang-8.0.0/include -std=c++17 -pedantic-errors
Exit Code:
1
Author
anonymous
over 5 years ago
C++
clang 8.0.0
Author
anonymous
over 5 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.71.0/clang-8.0.0/include -std=c++17 -pedantic-errors
prog.cc:10:7: error: chosen constructor is explicit in copy-initialization
A{}; // ill-formed
^
/opt/wandbox/clang-8.0.0/include/c++/v1/utility:934:14: note: explicit constructor declared here
explicit in_place_t() = default;
^
prog.cc:4:21: note: in implicit initialization of field 'x' with omitted initializer
std::in_place_t x;
^
1 error generated.