$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
From: john_at_[hidden]
Date: 2007-12-15 12:10:04
Author: johnmaddock
Date: 2007-12-15 12:10:03 EST (Sat, 15 Dec 2007)
New Revision: 42074
URL: http://svn.boost.org/trac/boost/changeset/42074
Log:
Fix error messages so they work with Boost.Format.
Text files modified: 
   trunk/boost/math/policies/error_handling.hpp |     6 +++---                                  
   1 files changed, 3 insertions(+), 3 deletions(-)
Modified: trunk/boost/math/policies/error_handling.hpp
==============================================================================
--- trunk/boost/math/policies/error_handling.hpp	(original)
+++ trunk/boost/math/policies/error_handling.hpp	2007-12-15 12:10:03 EST (Sat, 15 Dec 2007)
@@ -71,7 +71,7 @@
 void raise_error(const char* function, const char* message)
 {
   if(function == 0)
-       function = "Unknown function";
+       function = "Unknown function operating on type %1%";
   if(message == 0)
        message = "Cause unknown";
 
@@ -88,9 +88,9 @@
 void raise_error(const char* function, const char* message, const T& val)
 {
   if(function == 0)
-       function = "Unknown function";
+     function = "Unknown function operating on type %1%";
   if(message == 0)
-       message = "Cause unknown";
+     message = "Cause unknown: error caused by bad argument with value %1%";
 
   std::string msg("Error in function ");
   msg += (boost::format(function) % typeid(T).name()).str();