|
Boost-Commit : |
From: troy_at_[hidden]
Date: 2008-05-30 10:09:09
Author: troy
Date: 2008-05-30 10:09:08 EDT (Fri, 30 May 2008)
New Revision: 45950
URL: http://svn.boost.org/trac/boost/changeset/45950
Log:
gcc needs these forward declarations to get the ADL right, see
http://lists.boost.org/Archives/boost/2008/05/138134.php
Added:
trunk/boost/spirit/home/qi/detail/construct_fwd.hpp (contents, props changed)
Text files modified:
trunk/boost/spirit/home/qi/detail/assign_to.hpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
Modified: trunk/boost/spirit/home/qi/detail/assign_to.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/detail/assign_to.hpp (original)
+++ trunk/boost/spirit/home/qi/detail/assign_to.hpp 2008-05-30 10:09:08 EDT (Fri, 30 May 2008)
@@ -9,6 +9,7 @@
#if !defined(BOOST_SPIRIT_ASSIGN_TO_APR_16_2006_0812PM)
#define BOOST_SPIRIT_ASSIGN_TO_APR_16_2006_0812PM
+#include <boost/spirit/home/qi/detail/construct_fwd.hpp>
#include <boost/spirit/home/support/unused.hpp>
#include <boost/ref.hpp>
Added: trunk/boost/spirit/home/qi/detail/construct_fwd.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/spirit/home/qi/detail/construct_fwd.hpp 2008-05-30 10:09:08 EDT (Fri, 30 May 2008)
@@ -0,0 +1,86 @@
+// Copyright (c) 2001-2008 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_CONSTRUCT_FWD_MAY_29_2008_0318PM)
+#define BOOST_SPIRIT_CONSTRUCT_FWD_MAR_29_2008_0318PM
+
+#if defined(_MSC_VER) && (_MSC_VER >= 1020)
+#pragma once // MS compatible compilers support #pragma once
+#endif
+
+namespace boost { namespace spirit { namespace qi { namespace detail
+{
+ namespace construct_
+ {
+ ///////////////////////////////////////////////////////////////////////
+ // Forward declarations of overloads for the construct customization
+ // point for all built in types
+ ///////////////////////////////////////////////////////////////////////
+ template <typename Iterator>
+ inline void
+ construct(char& attr, Iterator const& first, Iterator const& last);
+
+#if !defined(BOOST_NO_INTRINSIC_WCHAR_T)
+ // wchar_t is intrinsic
+ template <typename Iterator>
+ inline void
+ construct(wchar_t& attr, Iterator const& first, Iterator const& last);
+
+ template <typename Iterator>
+ inline void
+ construct(unsigned short& attr, Iterator const& first, Iterator const& last);
+#else
+ // is wchar_t is not an intrinsic type, treat wchar_t only
+ template <typename Iterator>
+ inline void
+ construct(wchar_t& attr, Iterator const& first, Iterator const& last);
+#endif
+
+ template <typename Iterator>
+ inline void
+ construct(short& attr, Iterator const& first, Iterator const& last);
+
+ template <typename Iterator>
+ inline void
+ construct(int& attr, Iterator const& first, Iterator const& last);
+
+ template <typename Iterator>
+ inline void
+ construct(unsigned int& attr, Iterator const& first, Iterator const& last);
+
+ template <typename Iterator>
+ inline void
+ construct(long& attr, Iterator const& first, Iterator const& last);
+
+ template <typename Iterator>
+ inline void
+ construct(unsigned long& attr, Iterator const& first, Iterator const& last);
+
+#ifdef BOOST_HAS_LONG_LONG
+ template <typename Iterator>
+ inline void
+ construct(boost::long_long_type& attr, Iterator const& first, Iterator const& last);
+
+ template <typename Iterator>
+ inline void
+ construct(boost::ulong_long_type& attr, Iterator const& first, Iterator const& last);
+#endif
+
+ template <typename Iterator>
+ inline void
+ construct(float& attr, Iterator const& first, Iterator const& last);
+
+ template <typename Iterator>
+ inline void
+ construct(double& attr, Iterator const& first, Iterator const& last);
+
+ template <typename Iterator>
+ inline void
+ construct(long double& attr, Iterator const& first, Iterator const& last);
+ }
+
+}}}}
+
+#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