1
0
mirror of https://github.com/PurpleI2P/Boost-for-Android-Prebuilt synced 2025-01-08 22:08:01 +00:00
Boost-for-Android-Prebuilt/boost-1_72_0/include/boost/python/other.hpp
r4sas 93de5720b8
add boost 1.72.0
Signed-off-by: r4sas <r4sas@i2pmail.org>
2020-02-29 22:43:48 +00:00

53 lines
901 B
C++

#ifndef BOOST_PYTHON_OTHER_HPP
# define BOOST_PYTHON_OTHER_HPP
# include <boost/python/detail/prefix.hpp>
// Copyright David Abrahams 2002.
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
# include <boost/config.hpp>
namespace boost { namespace python {
template<class T> struct other
{
typedef T type;
};
namespace detail
{
template<typename T>
class is_other
{
public:
BOOST_STATIC_CONSTANT(bool, value = false);
};
template<typename T>
class is_other<other<T> >
{
public:
BOOST_STATIC_CONSTANT(bool, value = true);
};
template<typename T>
class unwrap_other
{
public:
typedef T type;
};
template<typename T>
class unwrap_other<other<T> >
{
public:
typedef T type;
};
}
}} // namespace boost::python
#endif