Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 7 years ago

Language

C++

Compiler

clang HEAD 8.0.0 (https://github.com/llvm-mirror/clang.git dc6514a0292124ec0e627e003d2ec668f2ea472f) (https://github.com/llvm-mirror/llvm.git 650bbe0ff0dc094ec13a4de9047f459ff33e8183)

Options
Warnings
Boost 1.67.0
C++14
no pedantic

Author

anonymous

about 7 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.67.0/clang-head/include -std=c++14
prog.cc:14:3: error: defaulted definition of default constructor is not constexpr
  constexpr C() = default ;
  ^
prog.cc:20:5: error: no matching constructor for initialization of 'C'
  C c1 ;
    ^
prog.cc:12:8: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 0 were provided
struct C {
       ^
prog.cc:12:8: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 0 were provided
2 errors generated.
Exit Code:
1