Ticket #3603: any_cast_warning.patch
File any_cast_warning.patch, 575 bytes (added by , 13 years ago) |
---|
-
boost/program_options/detail/value_semantic.hpp
33 33 void 34 34 typed_value<T, charT>::notify(const boost::any& value_store) const 35 35 { 36 const T* value = boost::any_cast<const T>(&value_store);36 const T* value = &(boost::any_cast<const T&>(value_store)); 37 37 if (m_store_to) { 38 38 *m_store_to = *value; 39 39 }