$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r56004 - in trunk/boost/spirit/home: karma/operator support
From: frabar666_at_[hidden]
Date: 2009-09-03 18:23:38
Author: fbarel
Date: 2009-09-03 18:23:37 EDT (Thu, 03 Sep 2009)
New Revision: 56004
URL: http://svn.boost.org/trac/boost/changeset/56004
Log:
Spirit: fix some C++0x failures (result_of requires operator())
Text files modified: 
   trunk/boost/spirit/home/karma/operator/alternative.hpp |     5 +++++                                   
   trunk/boost/spirit/home/karma/operator/sequence.hpp    |     5 +++++                                   
   trunk/boost/spirit/home/support/attributes.hpp         |     5 +++++                                   
   3 files changed, 15 insertions(+), 0 deletions(-)
Modified: trunk/boost/spirit/home/karma/operator/alternative.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/operator/alternative.hpp	(original)
+++ trunk/boost/spirit/home/karma/operator/alternative.hpp	2009-09-03 18:23:37 EDT (Thu, 03 Sep 2009)
@@ -56,6 +56,11 @@
             {
                 typedef properties_of<Element> type;
             };
+
+            // never called, but needed for decltype-based result_of (C++0x)
+            template <typename Element>
+            typename result<element_properties(Element)>::type
+            operator()(Element&) const;
         };
 
         typedef typename mpl::accumulate<
Modified: trunk/boost/spirit/home/karma/operator/sequence.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/operator/sequence.hpp	(original)
+++ trunk/boost/spirit/home/karma/operator/sequence.hpp	2009-09-03 18:23:37 EDT (Thu, 03 Sep 2009)
@@ -64,6 +64,11 @@
             {
                 typedef properties_of<Element> type;
             };
+
+            // never called, but needed for decltype-based result_of (C++0x)
+            template <typename Element>
+            typename result<element_properties(Element)>::type
+            operator()(Element&) const;
         };
 
         typedef typename mpl::accumulate<
Modified: trunk/boost/spirit/home/support/attributes.hpp
==============================================================================
--- trunk/boost/spirit/home/support/attributes.hpp	(original)
+++ trunk/boost/spirit/home/support/attributes.hpp	2009-09-03 18:23:37 EDT (Thu, 03 Sep 2009)
@@ -226,6 +226,11 @@
                     >::type
                 type;
             };
+
+            // never called, but needed for decltype-based result_of (C++0x)
+            template <typename Element>
+            typename result<element_attribute(Element)>::type
+            operator()(Element&) const;
         };
 
         // Compute the list of attributes of all sub-components