Language
C++
Compiler
gcc 7.3.0
Options
Warnings
Boost 1.70.0
C++17
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/gcc-7.3.0/include -std=c++17
Conversion constructor called!
Exit Code:
1
Author
anonymous
over 5 years ago
C++
gcc 7.3.0
Author
anonymous
over 5 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/gcc-7.3.0/include -std=c++17
prog.cc: In function 'int main()':
prog.cc:25:14: warning: variable 'instance2' set but not used [-Wunused-but-set-variable]
ClassInt instance2 = (ClassInt)floatObj; // (2)
^~~~~~~~~
Conversion constructor called!