libdl
0.0.1
Simple yet powerful deep learning
|
main.cpp
in your src
directory with the following contents: RightDerived Destroyed
and not WrongDerived Destroyed
. Base
and then Derived
, which may be surprising. But consider this: wrong(derived)
actually creates a copy of the object to pass by copying derived
. As such, the code is equivalent to