Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56703 - trunk/boost/spirit/home/support
From: hartmut.kaiser_at_[hidden]
Date: 2009-10-10 11:08:28


Author: hkaiser
Date: 2009-10-10 11:08:27 EDT (Sat, 10 Oct 2009)
New Revision: 56703
URL: http://svn.boost.org/trac/boost/changeset/56703

Log:
Spirit: improved fix for re-initialization of optionals
Text files modified:
   trunk/boost/spirit/home/support/attributes.hpp | 4 +---
   1 files changed, 1 insertions(+), 3 deletions(-)

Modified: trunk/boost/spirit/home/support/attributes.hpp
==============================================================================
--- trunk/boost/spirit/home/support/attributes.hpp (original)
+++ trunk/boost/spirit/home/support/attributes.hpp 2009-10-10 11:08:27 EDT (Sat, 10 Oct 2009)
@@ -644,10 +644,8 @@
     {
         static void call(optional<T>& val)
         {
- if (val) {
- clear(*val);
+ if (val)
                 val = none_t(); // leave optional uninitialized
- }
         }
     };
 


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