mirror of
https://github.com/boostorg/math.git
synced 2026-01-29 19:52:08 +00:00
@@ -87,7 +87,11 @@ void raise_error(const char* function, const char* message)
|
||||
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 @@ void raise_error(const char* function, const char* message, const T& val)
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user