Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66790 - trunk/boost/spirit/home/karma/nonterminal
From: hartmut.kaiser_at_[hidden]
Date: 2010-11-27 10:56:32


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

Log:
Spirit: applying patch improving assert messages
Text files modified:
   trunk/boost/spirit/home/karma/nonterminal/rule.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/spirit/home/karma/nonterminal/rule.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/nonterminal/rule.hpp (original)
+++ trunk/boost/spirit/home/karma/nonterminal/rule.hpp 2010-11-27 10:56:31 EST (Sat, 27 Nov 2010)
@@ -181,7 +181,7 @@
             // from an uninitialized one. Did you mean to refer to the right
             // hand side rule instead of assigning from it? In this case you
             // should write lhs = rhs.alias();
- BOOST_ASSERT(rhs.f);
+ BOOST_ASSERT(rhs.f && "Did you mean rhs.alias() instead of rhs?");
 
             f = rhs.f;
             name_ = rhs.name_;


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