Language
C++
Compiler
gcc 6.1.0
Options
Warnings
Boost 1.72.0
C++17
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/gcc-6.1.0/include -std=c++17 Exit Code:
1
Author
anonymous
about 5 years ago
C++
gcc 6.1.0
Author
anonymous
about 5 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/gcc-6.1.0/include -std=c++17 prog.cc: In function 'int main()':
prog.cc:11:10: error: cannot declare variable 'b' to be of abstract type 'Base'
Base b;
^
prog.cc:3:7: note: because the following virtual functions are pure within 'Base':
class Base
^~~~
prog.cc:6:18: note: virtual void Base::foo()
virtual void foo () = 0;
^~~