Language
C++
Compiler
gcc HEAD 10.0.0 20190919 (experimental)
Options
Warnings
Boost 1.69.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=gnu++2a
Exit Code:
1
Author
anonymous
over 5 years ago
C++
gcc HEAD 10.0.0 20190919 (experimental)
Author
anonymous
over 5 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'int main()':
prog.cc:73:19: error: cannot allocate an object of abstract type 'BaseIterator'
73 | for(auto&& i: a) {
| ^
prog.cc:3:7: note: because the following virtual functions are pure within 'BaseIterator':
3 | class BaseIterator
| ^~~~~~~~~~~~
prog.cc:19:27: note: 'virtual BaseIterator& BaseIterator::operator++()'
19 | virtual BaseIterator& operator++() = 0;
| ^~~~~~~~
prog.cc:73:19: error: cannot declare variable '__for_begin ' to be of abstract type 'BaseIterator'
73 | for(auto&& i: a) {
| ^
prog.cc:73:19: error: cannot allocate an object of abstract type 'BaseIterator'
prog.cc:73:19: error: cannot declare variable '__for_end ' to be of abstract type 'BaseIterator'