[boost] Re: Virtual member functions cause exception in get_derived_class_object