mirror of
http://172.16.200.102/MOISE/Timed-Altarica-To-Fiacre-Translator.git
synced 2025-12-22 12:43:57 +01:00
33 lines
783 B
C++
33 lines
783 B
C++
|
|
//
|
||
|
|
// Copyright (c) 2009 Rutger ter Borg
|
||
|
|
//
|
||
|
|
// 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)
|
||
|
|
//
|
||
|
|
|
||
|
|
#ifndef BOOST_NUMERIC_BINDINGS_DETAIL_COPY_CONST_HPP
|
||
|
|
#define BOOST_NUMERIC_BINDINGS_DETAIL_COPY_CONST_HPP
|
||
|
|
|
||
|
|
#include <boost/mpl/if.hpp>
|
||
|
|
#include <boost/type_traits/add_const.hpp>
|
||
|
|
#include <boost/type_traits/is_const.hpp>
|
||
|
|
|
||
|
|
namespace boost {
|
||
|
|
namespace numeric {
|
||
|
|
namespace bindings {
|
||
|
|
namespace detail {
|
||
|
|
|
||
|
|
template< typename Source, typename Target >
|
||
|
|
struct copy_const {
|
||
|
|
typedef typename mpl::if_< is_const<Source>,
|
||
|
|
typename add_const<Target>::type, Target >::type type;
|
||
|
|
};
|
||
|
|
|
||
|
|
} // namespace detail
|
||
|
|
} // namespace bindings
|
||
|
|
} // namespace numeric
|
||
|
|
} // namespace boost
|
||
|
|
|
||
|
|
#endif
|