Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66997 - trunk/boost/spirit/home/support/utree/detail
From: hartmut.kaiser_at_[hidden]
Date: 2010-12-03 20:49:24


Author: hkaiser
Date: 2010-12-03 20:49:22 EST (Fri, 03 Dec 2010)
New Revision: 66997
URL: http://svn.boost.org/trac/boost/changeset/66997

Log:
Spirit: reverted utree change enforcing list_type on push_back
Text files modified:
   trunk/boost/spirit/home/support/utree/detail/utree_detail2.hpp | 8 ++------
   1 files changed, 2 insertions(+), 6 deletions(-)

Modified: trunk/boost/spirit/home/support/utree/detail/utree_detail2.hpp
==============================================================================
--- trunk/boost/spirit/home/support/utree/detail/utree_detail2.hpp (original)
+++ trunk/boost/spirit/home/support/utree/detail/utree_detail2.hpp 2010-12-03 20:49:22 EST (Fri, 03 Dec 2010)
@@ -1252,13 +1252,9 @@
             set_type(type::list_type);
             l.default_construct();
         }
- else if (get_type() != type::list_type)
+ else if (get_type() != type::nil_type)
         {
- // convert this instance into a list by transforming the current
- // content into the first node in a list
- utree ut;
- ut.push_back(*this);
- ut.swap(*this);
+ boost::throw_exception(bad_type_exception());
         }
     }
 


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