|
Boost-Commit : |
From: daniel_at_[hidden]
Date: 2008-01-02 12:20:44
Author: danielw
Date: 2008-01-02 12:20:44 EST (Wed, 02 Jan 2008)
New Revision: 42415
URL: http://svn.boost.org/trac/boost/changeset/42415
Log:
Applied part of patch from Jens Seidel in: http://svn.boost.org/trac/boost/ticket/1541.
Fixed missing includes.
Text files modified:
trunk/boost/parameter/aux_/cast.hpp | 2 ++
trunk/boost/parameter/aux_/default.hpp | 14 ++++++++------
trunk/boost/parameter/aux_/python/invoker.hpp | 1 +
trunk/boost/parameter/aux_/set.hpp | 2 ++
trunk/boost/parameter/macros.hpp | 1 +
5 files changed, 14 insertions(+), 6 deletions(-)
Modified: trunk/boost/parameter/aux_/cast.hpp
==============================================================================
--- trunk/boost/parameter/aux_/cast.hpp (original)
+++ trunk/boost/parameter/aux_/cast.hpp 2008-01-02 12:20:44 EST (Wed, 02 Jan 2008)
@@ -5,6 +5,8 @@
#ifndef BOOST_PARAMETER_CAST_060902_HPP
# define BOOST_PARAMETER_CAST_060902_HPP
+# include <boost/detail/workaround.hpp>
+
# if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \
&& !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
# include <boost/type_traits/add_reference.hpp>
Modified: trunk/boost/parameter/aux_/default.hpp
==============================================================================
--- trunk/boost/parameter/aux_/default.hpp (original)
+++ trunk/boost/parameter/aux_/default.hpp 2008-01-02 12:20:44 EST (Wed, 02 Jan 2008)
@@ -4,7 +4,9 @@
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef DEFAULT_050329_HPP
-#define DEFAULT_050329_HPP
+# define DEFAULT_050329_HPP
+
+# include <boost/detail/workaround.hpp>
namespace boost { namespace parameter { namespace aux {
@@ -27,7 +29,7 @@
// the user when resolving the value of the parameter with the
// given keyword
//
-#if BOOST_WORKAROUND(__EDG_VERSION__, <= 300)
+# if BOOST_WORKAROUND(__EDG_VERSION__, <= 300)
// These compilers need a little extra help with overload
// resolution; we have empty_arg_list's operator[] accept a base
// class to make that overload less preferable.
@@ -48,8 +50,8 @@
: lazy_default_base<KW,DefaultComputer>(x)
{}
};
-# define BOOST_PARAMETER_lazy_default_fallback lazy_default_base
-#else
+# define BOOST_PARAMETER_lazy_default_fallback lazy_default_base
+# else
template <class KW, class DefaultComputer>
struct lazy_default
{
@@ -58,8 +60,8 @@
{}
DefaultComputer const& compute_default;
};
-# define BOOST_PARAMETER_lazy_default_fallback lazy_default
-#endif
+# define BOOST_PARAMETER_lazy_default_fallback lazy_default
+# endif
}}} // namespace boost::parameter::aux
Modified: trunk/boost/parameter/aux_/python/invoker.hpp
==============================================================================
--- trunk/boost/parameter/aux_/python/invoker.hpp (original)
+++ trunk/boost/parameter/aux_/python/invoker.hpp 2008-01-02 12:20:44 EST (Wed, 02 Jan 2008)
@@ -8,6 +8,7 @@
# include <boost/mpl/begin.hpp>
# include <boost/mpl/next.hpp>
# include <boost/mpl/deref.hpp>
+# include <boost/mpl/size.hpp>
# include <boost/parameter/keyword.hpp>
# include <boost/preprocessor/iteration/iterate.hpp>
Modified: trunk/boost/parameter/aux_/set.hpp
==============================================================================
--- trunk/boost/parameter/aux_/set.hpp (original)
+++ trunk/boost/parameter/aux_/set.hpp 2008-01-02 12:20:44 EST (Wed, 02 Jan 2008)
@@ -5,6 +5,8 @@
#ifndef BOOST_PARAMETER_SET_060912_HPP
# define BOOST_PARAMETER_SET_060912_HPP
+# include <boost/detail/workaround.hpp>
+
# if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) \
&& !BOOST_WORKAROUND(__GNUC__, < 3)
# include <boost/mpl/insert.hpp>
Modified: trunk/boost/parameter/macros.hpp
==============================================================================
--- trunk/boost/parameter/macros.hpp (original)
+++ trunk/boost/parameter/macros.hpp 2008-01-02 12:20:44 EST (Wed, 02 Jan 2008)
@@ -15,6 +15,7 @@
#include <boost/preprocessor/repetition/enum_params.hpp>
#include <boost/preprocessor/repetition/enum_binary_params.hpp>
#include <boost/preprocessor/cat.hpp>
+#include <boost/detail/workaround.hpp>
#define BOOST_PARAMETER_FUN_TEMPLATE_HEAD1(n) \
template<BOOST_PP_ENUM_PARAMS(n, class T)>
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