|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r68861 - in trunk/boost/spirit/home: karma/detail lex/lexer/lexertl qi/detail support support/utree
From: hartmut.kaiser_at_[hidden]
Date: 2011-02-14 08:23:01
Author: hkaiser
Date: 2011-02-14 08:22:56 EST (Mon, 14 Feb 2011)
New Revision: 68861
URL: http://svn.boost.org/trac/boost/changeset/68861
Log:
Spirit: Added utree traits forwarding header
Added:
trunk/boost/spirit/home/support/utree/utree_traits_fwd.hpp (contents, props changed)
Text files modified:
trunk/boost/spirit/home/karma/detail/alternative_function.hpp | 4 +++-
trunk/boost/spirit/home/lex/lexer/lexertl/token.hpp | 1 +
trunk/boost/spirit/home/qi/detail/attributes.hpp | 1 +
trunk/boost/spirit/home/support/utree.hpp | 1 +
4 files changed, 6 insertions(+), 1 deletions(-)
Modified: trunk/boost/spirit/home/karma/detail/alternative_function.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/detail/alternative_function.hpp (original)
+++ trunk/boost/spirit/home/karma/detail/alternative_function.hpp 2011-02-14 08:22:56 EST (Mon, 14 Feb 2011)
@@ -14,6 +14,7 @@
#include <boost/spirit/home/karma/domain.hpp>
#include <boost/spirit/home/karma/directive/buffer.hpp>
#include <boost/spirit/home/support/unused.hpp>
+#include <boost/spirit/home/support/utree/utree_traits_fwd.hpp>
#include <boost/spirit/home/karma/detail/attributes.hpp>
#include <boost/spirit/home/support/detail/hold_any.hpp>
#include <boost/spirit/home/karma/detail/output_iterator.hpp>
@@ -128,7 +129,8 @@
// returns true if any of the generators succeed
typedef typename component_type::compatible_type compatible_type;
- return component.generate(sink, ctx, d, get<compatible_type>(attr_));
+ return component.generate(sink, ctx, d
+ , boost::get<compatible_type>(attr_));
}
};
Modified: trunk/boost/spirit/home/lex/lexer/lexertl/token.hpp
==============================================================================
--- trunk/boost/spirit/home/lex/lexer/lexertl/token.hpp (original)
+++ trunk/boost/spirit/home/lex/lexer/lexertl/token.hpp 2011-02-14 08:22:56 EST (Mon, 14 Feb 2011)
@@ -18,6 +18,7 @@
#include <boost/spirit/home/support/detail/lexer/generator.hpp>
#include <boost/spirit/home/support/detail/lexer/rules.hpp>
#include <boost/spirit/home/support/detail/lexer/consts.hpp>
+#include <boost/spirit/home/support/utree/utree_traits_fwd.hpp>
#include <boost/fusion/include/vector.hpp>
#include <boost/fusion/include/at.hpp>
#include <boost/fusion/include/value_at.hpp>
Modified: trunk/boost/spirit/home/qi/detail/attributes.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/detail/attributes.hpp (original)
+++ trunk/boost/spirit/home/qi/detail/attributes.hpp 2011-02-14 08:22:56 EST (Mon, 14 Feb 2011)
@@ -10,6 +10,7 @@
#include <boost/spirit/home/qi/domain.hpp>
#include <boost/spirit/home/support/attributes_fwd.hpp>
#include <boost/spirit/home/support/attributes.hpp>
+#include <boost/spirit/home/support/utree/utree_traits_fwd.hpp>
///////////////////////////////////////////////////////////////////////////////
namespace boost { namespace spirit { namespace qi
Modified: trunk/boost/spirit/home/support/utree.hpp
==============================================================================
--- trunk/boost/spirit/home/support/utree.hpp (original)
+++ trunk/boost/spirit/home/support/utree.hpp 2011-02-14 08:22:56 EST (Mon, 14 Feb 2011)
@@ -11,6 +11,7 @@
#pragma once
#endif
+#include <boost/spirit/home/support/utree/utree_traits_fwd.hpp>
#include <boost/spirit/home/support/utree/utree.hpp>
#include <boost/spirit/home/support/utree/operators.hpp>
#include <boost/spirit/home/support/utree/detail/utree_detail2.hpp>
Added: trunk/boost/spirit/home/support/utree/utree_traits_fwd.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/spirit/home/support/utree/utree_traits_fwd.hpp 2011-02-14 08:22:56 EST (Mon, 14 Feb 2011)
@@ -0,0 +1,24 @@
+/*=============================================================================
+ Copyright (c) 2001-2011 Hartmut Kaiser
+
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
+ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+=============================================================================*/
+#if !defined(BOOST_SPIRIT_OUTPUT_UTREE_TRAITS_FWD_FEB_14_2011_0632AM)
+#define BOOST_SPIRIT_OUTPUT_UTREE_TRAITS_FWD_FEB_14_2011_0632AM
+
+///////////////////////////////////////////////////////////////////////////////
+// forward declarations only
+///////////////////////////////////////////////////////////////////////////////
+namespace boost { namespace spirit
+{
+ struct utree;
+}}
+
+namespace boost
+{
+ template <typename T>
+ inline T get(boost::spirit::utree const& x);
+}
+
+#endif
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