From b255796b33eca5448960f0abbaffc339b57289f6 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Fri, 5 Jul 2002 15:25:40 +0000 Subject: [PATCH] Bug fixes [SVN r14308] --- doc/inheritance.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/inheritance.html b/doc/inheritance.html index 3cceb0d0..56e96872 100644 --- a/doc/inheritance.html +++ b/doc/inheritance.html @@ -81,10 +81,10 @@ BOOST_PYTHON_MODULE_INIT(my_module)     python::module_builder my_module("my_module");     python::class_builder<Base> base_class(my_module, "Base"); -    base_class.def(python::constructor<void>()); +    base_class.def(python::constructor<>());     python::class_builder<Derived> derived_class(my_module, "Derived"); -    derived_class.def(python::constructor<void>()); +    derived_class.def(python::constructor<>()); // Establish the inheritance relationship between Base and Derived derived_class.declare_base(base_class); @@ -137,10 +137,10 @@ struct Derived2 { int f(); };
...    python::class_builder<Base> base2_class(my_module, "Base2"); -   base2_class.def(python::constructor<void>()); +   base2_class.def(python::constructor<>());    python::class_builder<Derived2> derived2_class(my_module, "Derived2"); -   derived2_class.def(python::constructor<void>()); +   derived2_class.def(python::constructor<>()); derived_class.declare_base(base_class, python::without_downcast);