Index: boost/math/policies/error_handling.hpp =================================================================== --- boost/math/policies/error_handling.hpp (revision 86513) +++ boost/math/policies/error_handling.hpp (working copy) @@ -87,7 +87,11 @@ message = "Cause unknown"; std::string msg("Error in function "); +#ifndef BOOST_NO_RTTI msg += (boost::format(function) % typeid(T).name()).str(); +#else + msg += function; +#endif msg += ": "; msg += message; @@ -104,7 +108,11 @@ message = "Cause unknown: error caused by bad argument with value %1%"; std::string msg("Error in function "); +#ifndef BOOST_NO_RTTI msg += (boost::format(function) % typeid(T).name()).str(); +#else + msg += function; +#endif msg += ": "; msg += message;