Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78494 - trunk/libs/multi_array/test
From: garcia_at_[hidden]
Date: 2012-05-17 09:48:52


Author: garcia
Date: 2012-05-17 09:48:51 EDT (Thu, 17 May 2012)
New Revision: 78494
URL: http://svn.boost.org/trac/boost/changeset/78494

Log:
Updated the ASSERT hooks with an implementation for assertion_failed_msg.

Text files modified:
   trunk/libs/multi_array/test/assert.cpp | 8 ++++++++
   1 files changed, 8 insertions(+), 0 deletions(-)

Modified: trunk/libs/multi_array/test/assert.cpp
==============================================================================
--- trunk/libs/multi_array/test/assert.cpp (original)
+++ trunk/libs/multi_array/test/assert.cpp 2012-05-17 09:48:51 EDT (Thu, 17 May 2012)
@@ -23,10 +23,18 @@
 #include <stdexcept>
 
 namespace boost {
+
   void assertion_failed(char const* expr, char const* function,
                         char const* file, long line) {
     throw std::runtime_error(expr);
   }
+
+ void assertion_failed_msg(char const * expr, char const * msg,
+ char const * function,
+ char const * file, long line) {
+ throw std::runtime_error(msg);
+ }
+
 } // namespace boost
 
 using namespace boost;


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