toast/python/make_callback.hpp File Reference


Detailed Description

This file contains the make_callback function.

#include <iostream>
#include <stdexcept>
#include <boost/type_traits.hpp>
#include <boost/python.hpp>
#include <boost/preprocessor/arithmetic/inc.hpp>
#include <boost/preprocessor/repetition/enum_params.hpp>
#include <boost/preprocessor/repetition/enum_shifted_params.hpp>
#include <boost/preprocessor/repetition/enum_binary_params.hpp>
#include <boost/preprocessor/repetition/repeat_from_to.hpp>

Go to the source code of this file.

Functions

template<typename Signature>
boost::function< Signature > make_callback (boost::python::object const &callback)
 Makes a C++ boost::function<Signature> object from a callable python object.


SourceForge.net Logo