mirror of
https://github.com/boostorg/python.git
synced 2026-01-24 06:02:14 +00:00
Fixed G++ bug that complains of specialization provided after instantiation.
[SVN r15112]
This commit is contained in:
@@ -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, <boost/python/detail/make_tuple.hpp>))
|
||||
# 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, <boost/python/detail/make_tuple.hpp>))
|
||||
# include BOOST_PP_ITERATE()
|
||||
|
||||
}} // namespace boost::python
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user