]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/mpi/src/python/datatypes.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / mpi / src / python / datatypes.cpp
1 // (C) Copyright 2006 Douglas Gregor <doug.gregor -at- gmail.com>
2
3 // Use, modification and distribution is subject to the Boost Software
4 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6
7 // Authors: Douglas Gregor
8
9 /** @file datatypes.cpp
10 *
11 * This file provides datatypes support for Boost.MPI in Python.
12 */
13 #include <boost/mpi/python/serialize.hpp>
14 #include <boost/mpi.hpp>
15
16 namespace boost { namespace mpi { namespace python {
17
18 void export_datatypes()
19 {
20 #if PY_MAJOR_VERSION < 3
21 register_serialized(long(0), &PyInt_Type);
22 #endif
23 register_serialized(false, &PyBool_Type);
24 register_serialized(double(0.0), &PyFloat_Type);
25 }
26
27 } } } // end namespace boost::mpi::python