2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 05:22:45 +00:00

Added support for enums

[SVN r15222]
This commit is contained in:
Dave Abrahams
2002-09-09 02:00:53 +00:00
parent 4c8bcd918b
commit dcf7e7cf0c
6 changed files with 117 additions and 32 deletions

View File

@@ -10,6 +10,10 @@ BOOST_PYTHON_DECL detail::new_reference str::call(object const& arg_)
arg_.ptr());
}
BOOST_PYTHON_DECL str::str()
: object(detail::new_reference(PyString_FromString("")))
{}
BOOST_PYTHON_DECL str::str(const char* s)
: object(detail::new_reference(PyString_FromString(s)))
{}