|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r86517 - trunk/boost/math/policies
From: john_at_[hidden]
Date: 2013-10-29 13:16:09
Author: johnmaddock
Date: 2013-10-29 13:16:09 EDT (Tue, 29 Oct 2013)
New Revision: 86517
URL: http://svn.boost.org/trac/boost/changeset/86517
Log:
Allow Boost.Math to be used without RTTI.
Fixes #9317.
Text files modified:
trunk/boost/math/policies/error_handling.hpp | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
Modified: trunk/boost/math/policies/error_handling.hpp
==============================================================================
--- trunk/boost/math/policies/error_handling.hpp Tue Oct 29 12:53:08 2013 (r86516)
+++ trunk/boost/math/policies/error_handling.hpp 2013-10-29 13:16:09 EDT (Tue, 29 Oct 2013) (r86517)
@@ -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;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk