Skip to content

Commit b255796

Browse files
committed
Bug fixes
[SVN r14308]
1 parent 2ae7c60 commit b255796

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

doc/inheritance.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ <h2><a name="implicit_conversion">Reflecting C++ Inheritance Relationships</a></
8181
    python::module_builder my_module("my_module");
8282

8383
    python::class_builder&lt;Base&gt; base_class(my_module, "Base");
84-
    base_class.def(python::constructor&lt;void&gt;());
84+
    base_class.def(python::constructor&lt;&gt;());
8585

8686
    python::class_builder&lt;Derived&gt; derived_class(my_module, "Derived");
87-
    derived_class.def(python::constructor&lt;void&gt;());
87+
    derived_class.def(python::constructor&lt;&gt;());
8888
<b>// Establish the inheritance relationship between Base and Derived
8989
derived_class.declare_base(base_class);</b>
9090

@@ -137,10 +137,10 @@ <h2>Inheritance Without Virtual Functions</h2>
137137
<hr>
138138
...
139139
   python::class_builder&lt;Base&gt; base2_class(my_module, "Base2");
140-
   base2_class.def(python::constructor&lt;void&gt;());
140+
   base2_class.def(python::constructor&lt;&gt;());
141141

142142
   python::class_builder&lt;Derived2&gt; derived2_class(my_module, "Derived2");
143-
   derived2_class.def(python::constructor&lt;void&gt;());
143+
   derived2_class.def(python::constructor&lt;&gt;());
144144
derived_class.declare_base(base_class, <b>python::without_downcast</b>);
145145
</pre>
146146
</blockquote>

0 commit comments

Comments
 (0)