the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 36 lines 1.1 kB view raw
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#ifndef IMPLICIT_DWA2002325_HPP 6# define IMPLICIT_DWA2002325_HPP 7 8# include <boost/python/detail/prefix.hpp> 9# include <boost/type.hpp> 10# include <boost/python/converter/implicit.hpp> 11# include <boost/python/converter/registry.hpp> 12#ifndef BOOST_PYTHON_NO_PY_SIGNATURES 13# include <boost/python/converter/pytype_function.hpp> 14#endif 15# include <boost/python/type_id.hpp> 16 17namespace boost { namespace python { 18 19template <class Source, class Target> 20void implicitly_convertible(boost::type<Source>* = 0, boost::type<Target>* = 0) 21{ 22 typedef converter::implicit<Source,Target> functions; 23 24 converter::registry::push_back( 25 &functions::convertible 26 , &functions::construct 27 , type_id<Target>() 28#ifndef BOOST_PYTHON_NO_PY_SIGNATURES 29 , &converter::expected_from_python_type_direct<Source>::get_pytype 30#endif 31 ); 32} 33 34}} // namespace boost::python 35 36#endif // IMPLICIT_DWA2002325_HPP