• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright David Abrahams 2004. Distributed under the Boost
2 // Software License, Version 1.0. (See accompanying
3 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4 #include <boost/python/module.hpp>
5 #include <boost/python/def.hpp>
6 #include <boost/python/class.hpp>
7 
8 struct V
9 {
~VV10  virtual ~V() {}; // silence compiler warningsa
11  virtual void f() = 0;
12 };
13 
14 struct B
15 {
BB16     B(const V&) {}
17 };
18 
BOOST_PYTHON_MODULE(bienstman3_ext)19 BOOST_PYTHON_MODULE(bienstman3_ext)
20 {
21   using namespace boost::python;
22 
23   class_<V, boost::noncopyable>("V", no_init);
24   class_<B>("B", init<const V&>());
25 
26 }
27