From 6f7957fd4086e34cc3393adc9d6903e4dcf5f016 Mon Sep 17 00:00:00 2001 From: Joel de Guzman Date: Fri, 30 Aug 2002 09:05:00 +0000 Subject: [PATCH] Fixed G++ bug that complains of specialization provided after instantiation. [SVN r15112] --- include/boost/python/tuple.hpp | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/include/boost/python/tuple.hpp b/include/boost/python/tuple.hpp index 04e2d37b..38547696 100644 --- a/include/boost/python/tuple.hpp +++ b/include/boost/python/tuple.hpp @@ -11,7 +11,7 @@ class tuple : public object public: // tuple() -> an empty tuple BOOST_PYTHON_DECL tuple(); - + // tuple(sequence) -> tuple initialized from sequence's items BOOST_PYTHON_DECL tuple(object_cref sequence); @@ -23,20 +23,15 @@ class tuple : public object public: // implementation detail -- for internal use only BOOST_PYTHON_FORWARD_OBJECT_CONSTRUCTORS(tuple) - + private: static BOOST_PYTHON_DECL detail::new_reference call(object const&); }; -// for completeness -inline tuple make_tuple() { return tuple(); } - -# define BOOST_PP_ITERATION_PARAMS_1 (3, (1, BOOST_PYTHON_MAX_ARITY, )) -# include BOOST_PP_ITERATE() - -// -// Converter Specializations // +// Converter Specializations // $$$ JDG $$$ moved here to prevent +// // G++ bug complaining specialization + // provided after instantiation namespace converter { template <> @@ -46,6 +41,12 @@ namespace converter }; } +// for completeness +inline tuple make_tuple() { return tuple(); } + +# define BOOST_PP_ITERATION_PARAMS_1 (3, (1, BOOST_PYTHON_MAX_ARITY, )) +# include BOOST_PP_ITERATE() + }} // namespace boost::python #endif