Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/python/implicit.hpp @ 133:4acb5d8d80b6 tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author | Chris Cannam |
---|---|
date | Tue, 30 Jul 2019 12:25:44 +0100 |
parents | 2665513ce2d3 |
children |
rev | line source |
---|---|
Chris@16 | 1 // Copyright David Abrahams 2002. |
Chris@16 | 2 // Distributed under the Boost Software License, Version 1.0. (See |
Chris@16 | 3 // accompanying file LICENSE_1_0.txt or copy at |
Chris@16 | 4 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 5 #ifndef IMPLICIT_DWA2002325_HPP |
Chris@16 | 6 # define IMPLICIT_DWA2002325_HPP |
Chris@16 | 7 |
Chris@16 | 8 # include <boost/python/detail/prefix.hpp> |
Chris@16 | 9 # include <boost/type.hpp> |
Chris@16 | 10 # include <boost/python/converter/implicit.hpp> |
Chris@16 | 11 # include <boost/python/converter/registry.hpp> |
Chris@16 | 12 #ifndef BOOST_PYTHON_NO_PY_SIGNATURES |
Chris@16 | 13 # include <boost/python/converter/pytype_function.hpp> |
Chris@16 | 14 #endif |
Chris@16 | 15 # include <boost/python/type_id.hpp> |
Chris@16 | 16 |
Chris@16 | 17 namespace boost { namespace python { |
Chris@16 | 18 |
Chris@16 | 19 template <class Source, class Target> |
Chris@16 | 20 void implicitly_convertible(boost::type<Source>* = 0, boost::type<Target>* = 0) |
Chris@16 | 21 { |
Chris@16 | 22 typedef converter::implicit<Source,Target> functions; |
Chris@16 | 23 |
Chris@16 | 24 converter::registry::push_back( |
Chris@16 | 25 &functions::convertible |
Chris@16 | 26 , &functions::construct |
Chris@16 | 27 , type_id<Target>() |
Chris@16 | 28 #ifndef BOOST_PYTHON_NO_PY_SIGNATURES |
Chris@16 | 29 , &converter::expected_from_python_type_direct<Source>::get_pytype |
Chris@16 | 30 #endif |
Chris@16 | 31 ); |
Chris@16 | 32 } |
Chris@16 | 33 |
Chris@16 | 34 }} // namespace boost::python |
Chris@16 | 35 |
Chris@16 | 36 #endif // IMPLICIT_DWA2002325_HPP |