Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63081 - trunk/libs/python/doc/v2
From: marshall_at_[hidden]
Date: 2010-06-18 11:50:26


Author: marshall
Date: 2010-06-18 11:50:25 EDT (Fri, 18 Jun 2010)
New Revision: 63081
URL: http://svn.boost.org/trac/boost/changeset/63081

Log:
Applied patch; fixes #4166
Text files modified:
   trunk/libs/python/doc/v2/return_internal_reference.html | 5 +++--
   1 files changed, 3 insertions(+), 2 deletions(-)

Modified: trunk/libs/python/doc/v2/return_internal_reference.html
==============================================================================
--- trunk/libs/python/doc/v2/return_internal_reference.html (original)
+++ trunk/libs/python/doc/v2/return_internal_reference.html 2010-06-18 11:50:25 EDT (Fri, 18 Jun 2010)
@@ -167,12 +167,13 @@
 
 class Bar
 {
+ public:
    Bar(int x) : x(x) {}
    int get_x() const { return x; }
    void set_x(int x) { this->x = x; }
  private:
    int x;
-}
+};
 
 class Foo
 {
@@ -189,7 +190,7 @@
 using namespace boost::python;
 BOOST_PYTHON_MODULE(internal_refs)
 {
- class_<Bar>("Bar")
+ class_<Bar>("Bar", init<int>())
       .def("get_x", &Bar::get_x)
       .def("set_x", &Bar::set_x)
       ;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk