Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66792 - in trunk/boost/spirit/home/support: . detail detail/math/detail
From: hartmut.kaiser_at_[hidden]
Date: 2010-11-27 10:57:38


Author: hkaiser
Date: 2010-11-27 10:57:36 EST (Sat, 27 Nov 2010)
New Revision: 66792
URL: http://svn.boost.org/trac/boost/changeset/66792

Log:
Spirit: applying patch improving assert messages
Text files modified:
   trunk/boost/spirit/home/support/container.hpp | 2 +-
   trunk/boost/spirit/home/support/detail/hold_any.hpp | 4 +++-
   trunk/boost/spirit/home/support/detail/math/detail/fp_traits.hpp | 3 ++-
   3 files changed, 6 insertions(+), 3 deletions(-)

Modified: trunk/boost/spirit/home/support/container.hpp
==============================================================================
--- trunk/boost/spirit/home/support/container.hpp (original)
+++ trunk/boost/spirit/home/support/container.hpp 2010-11-27 10:57:36 EST (Sat, 27 Nov 2010)
@@ -285,7 +285,7 @@
             bool push_back_impl(T_&, mpl::false_) const
             {
                 // this variant doesn't hold a container
- BOOST_ASSERT(false);
+ BOOST_ASSERT(false && "This variant doesn't hold a container");
                 return false;
             }
 

Modified: trunk/boost/spirit/home/support/detail/hold_any.hpp
==============================================================================
--- trunk/boost/spirit/home/support/detail/hold_any.hpp (original)
+++ trunk/boost/spirit/home/support/detail/hold_any.hpp 2010-11-27 10:57:36 EST (Sat, 27 Nov 2010)
@@ -193,7 +193,9 @@
             // value of the required type to the hold_any instance you want to
             // stream to. This assignment has to be executed before the actual
             // call to the operator>>().
- BOOST_ASSERT(false);
+ BOOST_ASSERT(false &&
+ "Tried to insert from a std istream into an empty "
+ "hold_any instance");
             return i;
         }
 

Modified: trunk/boost/spirit/home/support/detail/math/detail/fp_traits.hpp
==============================================================================
--- trunk/boost/spirit/home/support/detail/math/detail/fp_traits.hpp (original)
+++ trunk/boost/spirit/home/support/detail/math/detail/fp_traits.hpp 2010-11-27 10:57:36 EST (Sat, 27 Nov 2010)
@@ -193,7 +193,8 @@
             // If we do get here, then we have failed to detect the Motorola
             // processor at compile time.
 
- BOOST_ASSERT(false);
+ BOOST_ASSERT(false &&
+ "Failed to detect the Motorola processor at compile time");
             return;
 
         case 0x3ffe8000: // IEEE extended double precision format


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