]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/python/test/bienstman5.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / python / test / bienstman5.cpp
1 // Copyright David Abrahams 2002.
2 // Distributed under the Boost Software License, Version 1.0. (See
3 // accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
5
6 #include <boost/python/module.hpp>
7 #include <boost/python/def.hpp>
8 #include <boost/python/class.hpp>
9 #include <boost/mpl/list.hpp>
10
11 #include <complex>
12
13 struct M {M(const std::complex<double>&) {} };
14
15 BOOST_PYTHON_MODULE(bienstman5_ext)
16 {
17 using namespace boost::python;
18
19 class_<M>("M", init<std::complex<double> const&>())
20 ;
21 }
22
23