
11 Jan
2012
11 Jan
'12
3:18 p.m.
Greetings, all -
I am updating a neural network package from the DOS days to modern C++ standards.
I have a shared_ptr to a vector of shared_ptrs of type Layer. This class has derived classes OutputLayer, MiddleLayer and InputLayer. Each of these has their own method for calculating output updates, so I need to be able to cast. from boost::shared_ptr<Layer> to static_cast