Language
C++
Compiler
gcc 8.3.0
Options
Warnings
Boost 1.69.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-8.3.0/include -std=gnu++2a
FieldIndex called = inA
FieldIndex called = inB
Exit Code:
0
Author
anonymous
over 6 years ago
C++
gcc 8.3.0
Author
anonymous
over 6 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-8.3.0/include -std=gnu++2a
prog.cc: In constructor 'FieldIndexContainer::FieldIndex::FieldIndex(const string&, FieldIndexContainer*)':
prog.cc:12:72: warning: unused parameter 'owner' [-Wunused-parameter]
FieldIndex( const std::string& fieldName, FieldIndexContainer* owner)
~~~~~~~~~~~~~~~~~~~~~^~~~~
prog.cc: In function 'int main()':
prog.cc:33:7: warning: unused variable 'b' [-Wunused-variable]
B* b = new B;
^
FieldIndex called = inA
FieldIndex called = inB