2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 05:42:30 +00:00
Files
python/test/bienstman3.cpp
Dave Abrahams 6e06ff048d Automatic class def_init(), abstract class __init__ errors
Fixed line endings
Suppressed warnings


[SVN r14828]
2002-08-14 06:26:33 +00:00

30 lines
396 B
C++

#include <boost/python/module.hpp>
#include <boost/python/class.hpp>
struct V
{
virtual void f() = 0;
};
struct B
{
B(const V&) {}
};
BOOST_PYTHON_MODULE_INIT(bienstman3_ext)
{
using namespace boost::python;
module m("bienstman3_ext");
m
.add(
class_<V, boost::noncopyable>("V", no_init)
)
.add(
class_<B>("B", args<const V&>())
)
;
}