From 98a1329dd72525920c3edfc19f06b5ea2db418e3 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 22 Jan 2002 01:43:40 +0000 Subject: [PATCH] default argument moved to declaration. [SVN r12414] --- include/boost/python/class.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/python/class.hpp b/include/boost/python/class.hpp index 76a74df2..abd38d82 100644 --- a/include/boost/python/class.hpp +++ b/include/boost/python/class.hpp @@ -90,7 +90,7 @@ class class_ : objects::class_base public: // Construct with the module and class name - class_(module&, char const* name); + class_(module&, char const* name = typeid(T).name()); // Wrap a member function or a non-member function which can take // a T, T cv&, or T cv* as its first parameter, or a callable @@ -152,7 +152,7 @@ class class_ : objects::class_base // template inline class_::class_( - module& m, char const* name = typeid(T).name()) + module& m, char const* name) : class_base(m, name, id_vector::size, id_vector().ids) { // Bring the class converters into existence. This static object