• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
MM13 struct M {M(const std::complex<double>&) {} };
14 
BOOST_PYTHON_MODULE(bienstman5_ext)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 
24