Language
C++
Compiler
gcc HEAD 9.0.1 20190313 (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
almost 6 years ago
C++
gcc HEAD 9.0.1 20190313 (experimental)
Author
anonymous
almost 6 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=gnu++2a
prog.cc: In member function 'TeePtr& TeePtr::operator=(ENT*)':
prog.cc:55:5: warning: no return statement in function returning non-void [-Wreturn-type]
54 | teePtr_.reset ( new model<ENT>( entPtr ) ); // constructs the wrapper object
+++ |+ return *this;
55 | }
| ^
prog.cc: In constructor 'TeePtr::model<ENT>::model(ENT*)':
prog.cc:79:45: error: expected type-specifier before ')' token
79 | entPtr_( new(mSize, entPtr) ); // emplacement new at given location (memory reuse)
| ^