bienstman5.cpp 529 B

1234567891011121314151617181920212223
  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. #include <boost/python/module.hpp>
  6. #include <boost/python/def.hpp>
  7. #include <boost/python/class.hpp>
  8. #include <boost/mpl/list.hpp>
  9. #include <complex>
  10. struct M {M(const std::complex<double>&) {} };
  11. BOOST_PYTHON_MODULE(bienstman5_ext)
  12. {
  13. using namespace boost::python;
  14. class_<M>("M", init<std::complex<double> const&>())
  15. ;
  16. }