Why do I receive the following error for the following code?
1>C:\\Libs\\boost_1_44\\boost/smart_ptr/shared_ptr.hpp(259): error C2683: \'dynamic_cast\' :
'dynamic_cast' : 'my_namespace::A' is not a polymorphic type because it doesn't define or inherit a single virtual function. Just add a virtual destructor and you'll be fine.
'dynamic_cast' : 'my_namespace::A' is not a polymorphic type
virtual
dynamic_cast works only for such 'polymorphic' types.
dynamic_cast