2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-29 19:52:08 +00:00

Allow Boost.Math to be used without RTTI.

Fixes #9317.

[SVN r86517]
This commit is contained in:
John Maddock
2013-10-29 17:16:09 +00:00
parent 6d7249a357
commit bcf4ac887e

View File

@@ -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;