Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/python/test/bienstman3.cpp @ 29

Last change on this file since 29 was 29, checked in by landauf, 17 years ago

updated boost from 1_33_1 to 1_34_1

File size: 525 bytes
Line 
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
8struct V
9{
10 virtual void f() = 0;
11};
12
13struct B
14{
15    B(const V&) {}   
16};
17
18BOOST_PYTHON_MODULE(bienstman3_ext)
19{
20  using namespace boost::python;
21
22  class_<V, boost::noncopyable>("V", no_init);
23  class_<B>("B", init<const V&>());
24
25}
Note: See TracBrowser for help on using the repository browser.