2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 06:02:14 +00:00

Automatic class def_init(), abstract class __init__ errors

Fixed line endings
Suppressed warnings


[SVN r14828]
This commit is contained in:
Dave Abrahams
2002-08-14 06:26:33 +00:00
parent c5ee39f54b
commit 6e06ff048d
31 changed files with 1045 additions and 115 deletions

View File

@@ -40,12 +40,12 @@ BOOST_PYTHON_MODULE_INIT(docstring_ext)
class_<X>("X",
"A simple class wrapper around a C++ int\n"
"includes some error-checking"
)
.def_init(args<int>(),
, args<int>(),
"this is the __init__ function\n"
"its documentation has two lines."
)
)
.def("value", &X::value,
"gets the value of the object")