Skip to content

Commit 63a3f18

Browse files
committed
Merged changes for #2981, #4166, and #4377 to release branch
[SVN r63523]
1 parent 34b1627 commit 63a3f18

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

doc/v2/args.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ <h4><a name="arg-synopsis"></a>Class <code>arg</code> synopsis</h4>
101101
struct arg
102102
{
103103
template &lt;class T&gt;
104-
arg &amp;perator = (T const &amp;value);
104+
arg &amp;operator = (T const &amp;value);
105105
explicit arg (char const *name){elements[0].name = name;}
106106
};
107107

doc/v2/return_internal_reference.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,13 @@ <h3>C++ module definition</h3>
167167

168168
class Bar
169169
{
170+
public:
170171
Bar(int x) : x(x) {}
171172
int get_x() const { return x; }
172173
void set_x(int x) { this-&gt;x = x; }
173174
private:
174175
int x;
175-
}
176+
};
176177

177178
class Foo
178179
{
@@ -189,7 +190,7 @@ <h3>C++ module definition</h3>
189190
using namespace boost::python;
190191
BOOST_PYTHON_MODULE(internal_refs)
191192
{
192-
class_&lt;Bar&gt;("Bar")
193+
class_&lt;Bar&gt;("Bar", init&lt;int&gt;())
193194
.def("get_x", &amp;Bar::get_x)
194195
.def("set_x", &amp;Bar::set_x)
195196
;

0 commit comments

Comments
 (0)