Language
C++
Compiler
gcc 7.3.0
Options
Warnings
Boost 1.68.0
C++17(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-7.3.0/include -std=gnu++17
Exit Code:
1
Author
anonymous
about 7 years ago
C++
gcc 7.3.0
Author
anonymous
about 7 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-7.3.0/include -std=gnu++17
prog.cc:17:13: error: explicitly defaulted function 'constexpr Test::Test()' cannot be declared as constexpr because the implicit declaration is not constexpr:
constexpr Test() noexcept = default;
^~~~
prog.cc:13:8: error: no matching function for call to 'Bar::Bar()'
struct Test
^~~~
prog.cc:10:13: note: candidate: constexpr Bar::Bar(Foo)
constexpr Bar(Foo const obj) noexcept : Foo(obj) {}
^~~
prog.cc:10:13: note: candidate expects 1 argument, 0 provided
prog.cc:8:8: note: candidate: constexpr Bar::Bar(const Bar&)
struct Bar : Foo
^~~
prog.cc:8:8: note: candidate expects 1 argument, 0 provided
prog.cc:8:8: note: candidate: constexpr Bar::Bar(Bar&&)
prog.cc:8:8: note: candidate expects 1 argument, 0 provided