sl@0: // Copyright David Abrahams 2002. sl@0: // Distributed under the Boost Software License, Version 1.0. (See sl@0: // accompanying file LICENSE_1_0.txt or copy at sl@0: // http://www.boost.org/LICENSE_1_0.txt) sl@0: #ifndef IMPLICIT_DWA2002325_HPP sl@0: # define IMPLICIT_DWA2002325_HPP sl@0: sl@0: # include <boost/python/detail/prefix.hpp> sl@0: # include <boost/type.hpp> sl@0: # include <boost/python/converter/implicit.hpp> sl@0: # include <boost/python/converter/registry.hpp> sl@0: # include <boost/python/type_id.hpp> sl@0: sl@0: namespace boost { namespace python { sl@0: sl@0: template <class Source, class Target> sl@0: void implicitly_convertible(boost::type<Source>* = 0, boost::type<Target>* = 0) sl@0: { sl@0: typedef converter::implicit<Source,Target> functions; sl@0: sl@0: converter::registry::push_back( sl@0: &functions::convertible sl@0: , &functions::construct sl@0: , type_id<Target>()); sl@0: } sl@0: sl@0: }} // namespace boost::python sl@0: sl@0: #endif // IMPLICIT_DWA2002325_HPP