Added boost header
This commit is contained in:
30
test/external/boost/ratio/mpl/abs.hpp
vendored
Normal file
30
test/external/boost/ratio/mpl/abs.hpp
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// abs.hpp
|
||||
//
|
||||
// (C) Copyright 2011 Vicente J. Botet Escriba
|
||||
// Use, modification and distribution are subject to 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_RATIO_MPL_ABS_HPP
|
||||
#define BOOST_RATIO_MPL_ABS_HPP
|
||||
|
||||
#include <boost/ratio/ratio.hpp>
|
||||
#include <boost/ratio/mpl/numeric_cast.hpp>
|
||||
#include <boost/ratio/detail/mpl/abs.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
template<>
|
||||
struct abs_impl< rational_c_tag >
|
||||
{
|
||||
template< typename R > struct apply
|
||||
: ratio_abs<R>
|
||||
{
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_RATIO_MPL_ABS_HPP
|
||||
22
test/external/boost/ratio/mpl/arithmetic.hpp
vendored
Normal file
22
test/external/boost/ratio/mpl/arithmetic.hpp
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
// arithmetic.hpp ---------------------------------------------------------------//
|
||||
|
||||
// Copyright 2011 Vicente J. Botet Escriba
|
||||
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// See http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
|
||||
#ifndef BOOST_RATIO_MPL_ARITHMETIC_HPP
|
||||
#define BOOST_RATIO_MPL_ARITHMETIC_HPP
|
||||
|
||||
#include <boost/ratio/mpl/plus.hpp>
|
||||
#include <boost/ratio/mpl/minus.hpp>
|
||||
#include <boost/ratio/mpl/times.hpp>
|
||||
#include <boost/ratio/mpl/divides.hpp>
|
||||
#include <boost/ratio/mpl/negate.hpp>
|
||||
#include <boost/ratio/mpl/abs.hpp>
|
||||
#include <boost/ratio/mpl/sign.hpp>
|
||||
#include <boost/ratio/mpl/gcd.hpp>
|
||||
#include <boost/ratio/mpl/lcm.hpp>
|
||||
|
||||
#endif // BOOST_RATIO_MPL_ARITHMETIC_HPP
|
||||
19
test/external/boost/ratio/mpl/comparison.hpp
vendored
Normal file
19
test/external/boost/ratio/mpl/comparison.hpp
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// comparison.hpp ---------------------------------------------------------------//
|
||||
|
||||
// Copyright 2011 Vicente J. Botet Escriba
|
||||
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// See http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
|
||||
#ifndef BOOST_RATIO_MPL_COMPARISON_HPP
|
||||
#define BOOST_RATIO_MPL_COMPARISON_HPP
|
||||
|
||||
#include <boost/ratio/mpl/equal_to.hpp>
|
||||
#include <boost/ratio/mpl/not_equal_to.hpp>
|
||||
#include <boost/ratio/mpl/less.hpp>
|
||||
#include <boost/ratio/mpl/less_equal.hpp>
|
||||
#include <boost/ratio/mpl/greater.hpp>
|
||||
#include <boost/ratio/mpl/greater_equal.hpp>
|
||||
|
||||
#endif // BOOST_RATIO_MPL_COMPARISON_HPP
|
||||
30
test/external/boost/ratio/mpl/divides.hpp
vendored
Normal file
30
test/external/boost/ratio/mpl/divides.hpp
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// divides.hpp
|
||||
//
|
||||
// (C) Copyright 2011 Vicente J. Botet Escriba
|
||||
// Use, modification and distribution are subject to 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_RATIO_MPL_DIVIDES_HPP
|
||||
#define BOOST_RATIO_MPL_DIVIDES_HPP
|
||||
|
||||
#include <boost/ratio/ratio.hpp>
|
||||
#include <boost/ratio/mpl/numeric_cast.hpp>
|
||||
#include <boost/mpl/divides.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
template<>
|
||||
struct divides_impl< rational_c_tag,rational_c_tag >
|
||||
{
|
||||
template< typename R1, typename R2 > struct apply
|
||||
: ratio_divide<R1, R2>
|
||||
{
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_RATIO_MPL_DIVIDES_HPP
|
||||
30
test/external/boost/ratio/mpl/equal_to.hpp
vendored
Normal file
30
test/external/boost/ratio/mpl/equal_to.hpp
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// equal_to.hpp
|
||||
//
|
||||
// (C) Copyright 2011 Vicente J. Botet Escriba
|
||||
// Use, modification and distribution are subject to 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_RATIO_MPL_EQUAL_TO_HPP
|
||||
#define BOOST_RATIO_MPL_EQUAL_TO_HPP
|
||||
|
||||
#include <boost/ratio/ratio.hpp>
|
||||
#include <boost/ratio/mpl/numeric_cast.hpp>
|
||||
#include <boost/mpl/equal_to.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
template<>
|
||||
struct equal_to_impl< rational_c_tag,rational_c_tag >
|
||||
{
|
||||
template< typename R1, typename R2 > struct apply
|
||||
: ratio_equal<R1, R2>
|
||||
{
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_RATIO_MPL_EQUAL_TO_HPP
|
||||
30
test/external/boost/ratio/mpl/gcd.hpp
vendored
Normal file
30
test/external/boost/ratio/mpl/gcd.hpp
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// gcd.hpp
|
||||
//
|
||||
// (C) Copyright 2011 Vicente J. Botet Escriba
|
||||
// Use, modification and distribution are subject to 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_RATIO_MPL_GCD_HPP
|
||||
#define BOOST_RATIO_MPL_GCD_HPP
|
||||
|
||||
#include <boost/ratio/ratio.hpp>
|
||||
#include <boost/ratio/mpl/numeric_cast.hpp>
|
||||
#include <boost/ratio/detail/mpl/gcd.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
template<>
|
||||
struct gcd_impl< rational_c_tag,rational_c_tag >
|
||||
{
|
||||
template< typename R1, typename R2 > struct apply
|
||||
: ratio_gcd<R1, R2>
|
||||
{
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_RATIO_MPL_GCD_HPP
|
||||
30
test/external/boost/ratio/mpl/greater.hpp
vendored
Normal file
30
test/external/boost/ratio/mpl/greater.hpp
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// greater.hpp
|
||||
//
|
||||
// (C) Copyright 2011 Vicente J. Botet Escriba
|
||||
// Use, modification and distribution are subject to 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_RATIO_MPL_GREATER_HPP
|
||||
#define BOOST_RATIO_MPL_GREATER_HPP
|
||||
|
||||
#include <boost/ratio/ratio.hpp>
|
||||
#include <boost/ratio/mpl/numeric_cast.hpp>
|
||||
#include <boost/mpl/greater.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
template<>
|
||||
struct greater_impl< rational_c_tag,rational_c_tag >
|
||||
{
|
||||
template< typename R1, typename R2 > struct apply
|
||||
: ratio_greater<R1, R2>
|
||||
{
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_RATIO_MPL_GREATER_HPP
|
||||
30
test/external/boost/ratio/mpl/greater_equal.hpp
vendored
Normal file
30
test/external/boost/ratio/mpl/greater_equal.hpp
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// greater_equal.hpp
|
||||
//
|
||||
// (C) Copyright 2011 Vicente J. Botet Escriba
|
||||
// Use, modification and distribution are subject to 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_RATIO_MPL_GREATER_EQUAL_HPP
|
||||
#define BOOST_RATIO_MPL_GREATER_EQUAL_HPP
|
||||
|
||||
#include <boost/ratio/ratio.hpp>
|
||||
#include <boost/ratio/mpl/numeric_cast.hpp>
|
||||
#include <boost/mpl/greater_equal.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
template<>
|
||||
struct greater_equal_impl< rational_c_tag,rational_c_tag >
|
||||
{
|
||||
template< typename R1, typename R2 > struct apply
|
||||
: ratio_greater_equal<R1, R2>
|
||||
{
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_RATIO_MPL_GREATER_EQUAL_HPP
|
||||
30
test/external/boost/ratio/mpl/lcm.hpp
vendored
Normal file
30
test/external/boost/ratio/mpl/lcm.hpp
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// lcm.hpp
|
||||
//
|
||||
// (C) Copyright 2011 Vicente J. Botet Escriba
|
||||
// Use, modification and distribution are subject to 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_RATIO_MPL_LCM_HPP
|
||||
#define BOOST_RATIO_MPL_LCM_HPP
|
||||
|
||||
#include <boost/ratio/ratio.hpp>
|
||||
#include <boost/ratio/mpl/numeric_cast.hpp>
|
||||
#include <boost/ratio/detail/mpl/lcm.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
template<>
|
||||
struct lcm_impl< rational_c_tag,rational_c_tag >
|
||||
{
|
||||
template< typename R1, typename R2 > struct apply
|
||||
: ratio_lcm<R1, R2>
|
||||
{
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_RATIO_MPL_LCM_HPP
|
||||
30
test/external/boost/ratio/mpl/less.hpp
vendored
Normal file
30
test/external/boost/ratio/mpl/less.hpp
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// less.hpp
|
||||
//
|
||||
// (C) Copyright 2011 Vicente J. Botet Escriba
|
||||
// Use, modification and distribution are subject to 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_RATIO_MPL_LESS_HPP
|
||||
#define BOOST_RATIO_MPL_LESS_HPP
|
||||
|
||||
#include <boost/ratio/ratio.hpp>
|
||||
#include <boost/ratio/mpl/numeric_cast.hpp>
|
||||
#include <boost/mpl/less.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
template<>
|
||||
struct less_impl< rational_c_tag,rational_c_tag >
|
||||
{
|
||||
template< typename R1, typename R2 > struct apply
|
||||
: ratio_less<R1, R2>
|
||||
{
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_RATIO_MPL_LESS_HPP
|
||||
30
test/external/boost/ratio/mpl/less_equal.hpp
vendored
Normal file
30
test/external/boost/ratio/mpl/less_equal.hpp
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// less_equal.hpp
|
||||
//
|
||||
// (C) Copyright 2011 Vicente J. Botet Escriba
|
||||
// Use, modification and distribution are subject to 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_RATIO_MPL_LESS_EQUAL_HPP
|
||||
#define BOOST_RATIO_MPL_LESS_EQUAL_HPP
|
||||
|
||||
#include <boost/ratio/ratio.hpp>
|
||||
#include <boost/ratio/mpl/numeric_cast.hpp>
|
||||
#include <boost/mpl/less_equal.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
template<>
|
||||
struct less_equal_impl< rational_c_tag,rational_c_tag >
|
||||
{
|
||||
template< typename R1, typename R2 > struct apply
|
||||
: ratio_less_equal<R1, R2>
|
||||
{
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_RATIO_MPL_LESS_EQUAL_HPP
|
||||
30
test/external/boost/ratio/mpl/minus.hpp
vendored
Normal file
30
test/external/boost/ratio/mpl/minus.hpp
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// minus.hpp
|
||||
//
|
||||
// (C) Copyright 2011 Vicente J. Botet Escriba
|
||||
// Use, modification and distribution are subject to 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_RATIO_MPL_MINUS_HPP
|
||||
#define BOOST_RATIO_MPL_MINUS_HPP
|
||||
|
||||
#include <boost/ratio/ratio.hpp>
|
||||
#include <boost/ratio/mpl/numeric_cast.hpp>
|
||||
#include <boost/mpl/minus.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
template<>
|
||||
struct minus_impl< rational_c_tag,rational_c_tag >
|
||||
{
|
||||
template< typename R1, typename R2 > struct apply
|
||||
: ratio_subtract<R1, R2>
|
||||
{
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_RATIO_MPL_MINUS_HPP
|
||||
30
test/external/boost/ratio/mpl/negate.hpp
vendored
Normal file
30
test/external/boost/ratio/mpl/negate.hpp
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// negate.hpp
|
||||
//
|
||||
// (C) Copyright 2011 Vicente J. Botet Escriba
|
||||
// Use, modification and distribution are subject to 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_RATIO_MPL_NEGATE_HPP
|
||||
#define BOOST_RATIO_MPL_NEGATE_HPP
|
||||
|
||||
#include <boost/ratio/ratio.hpp>
|
||||
#include <boost/ratio/mpl/numeric_cast.hpp>
|
||||
#include <boost/mpl/negate.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
template<>
|
||||
struct negate_impl< rational_c_tag >
|
||||
{
|
||||
template< typename R > struct apply
|
||||
: ratio_negate<R>
|
||||
{
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_RATIO_MPL_NEGATE_HPP
|
||||
30
test/external/boost/ratio/mpl/not_equal_to.hpp
vendored
Normal file
30
test/external/boost/ratio/mpl/not_equal_to.hpp
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// not_equal_to.hpp
|
||||
//
|
||||
// (C) Copyright 2011 Vicente J. Botet Escriba
|
||||
// Use, modification and distribution are subject to 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_RATIO_MPL_NOT_EQUAL_TO_HPP
|
||||
#define BOOST_RATIO_MPL_NOT_EQUAL_TO_HPP
|
||||
|
||||
#include <boost/ratio/ratio.hpp>
|
||||
#include <boost/ratio/mpl/numeric_cast.hpp>
|
||||
#include <boost/mpl/not_equal_to.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
template<>
|
||||
struct not_equal_to_impl< rational_c_tag,rational_c_tag >
|
||||
{
|
||||
template< typename R1, typename R2 > struct apply
|
||||
: ratio_not_equal<R1, R2>
|
||||
{
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_RATIO_MPL_NOT_EQUAL_TO_HPP
|
||||
31
test/external/boost/ratio/mpl/numeric_cast.hpp
vendored
Normal file
31
test/external/boost/ratio/mpl/numeric_cast.hpp
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
// numeric_cast.hpp
|
||||
//
|
||||
// (C) Copyright 2011 Vicente J. Botet Escriba
|
||||
// Use, modification and distribution are subject to 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_RATIO_MPL_NUMERIC_CAST_HPP
|
||||
#define BOOST_RATIO_MPL_NUMERIC_CAST_HPP
|
||||
|
||||
#include <boost/ratio/ratio.hpp>
|
||||
#include <boost/mpl/integral_c.hpp>
|
||||
#include <boost/ratio/mpl/rational_c_tag.hpp>
|
||||
#include <boost/mpl/numeric_cast.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
template<> struct numeric_cast< integral_c_tag,rational_c_tag >
|
||||
{
|
||||
template< typename N > struct apply
|
||||
: ratio< N::value, 1 >
|
||||
{
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_RATIO_MPL_NUMERIC_CAST_HPP
|
||||
30
test/external/boost/ratio/mpl/plus.hpp
vendored
Normal file
30
test/external/boost/ratio/mpl/plus.hpp
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// plus.hpp
|
||||
//
|
||||
// (C) Copyright 2011Vicente J. Botet Escriba
|
||||
// Use, modification and distribution are subject to 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_RATIO_MPL_PLUS_HPP
|
||||
#define BOOST_RATIO_MPL_PLUS_HPP
|
||||
|
||||
#include <boost/ratio/ratio.hpp>
|
||||
#include <boost/ratio/mpl/numeric_cast.hpp>
|
||||
#include <boost/mpl/plus.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
template<>
|
||||
struct plus_impl< rational_c_tag,rational_c_tag >
|
||||
{
|
||||
template< typename R1, typename R2 > struct apply
|
||||
: ratio_add<R1, R2>
|
||||
{
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_RATIO_MPL_PLUS_HPP
|
||||
25
test/external/boost/ratio/mpl/rational_c_tag.hpp
vendored
Normal file
25
test/external/boost/ratio/mpl/rational_c_tag.hpp
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
// abs.hpp
|
||||
//
|
||||
// (C) Copyright 2011 Vicente J. Botet Escriba
|
||||
// Use, modification and distribution are subject to 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_RATIO_MPL_RATIONAL_C_TAG_HPP
|
||||
#define BOOST_RATIO_MPL_RATIONAL_C_TAG_HPP
|
||||
|
||||
#ifdef BOOST_RATIO_EXTENSIONS
|
||||
|
||||
#include <boost/mpl/int.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
struct rational_c_tag : int_<10> {};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_RATIO_EXTENSIONS
|
||||
#endif // BOOST_RATIO_MPL_RATIONAL_C_TAG_HPP
|
||||
15
test/external/boost/ratio/mpl/rational_constant.hpp
vendored
Normal file
15
test/external/boost/ratio/mpl/rational_constant.hpp
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
// rational_constant.hpp ---------------------------------------------------------------//
|
||||
// Copyright 2011 Vicente J. Botet Escriba
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// See http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
|
||||
#ifndef BOOST_RATIO_MPL_RATIONAL_CONSTANT_HPP
|
||||
#define BOOST_RATIO_MPL_RATIONAL_CONSTANT_HPP
|
||||
|
||||
#include <boost/ratio/mpl/rational_c_tag.hpp>
|
||||
#include <boost/ratio/mpl/numeric_cast.hpp>
|
||||
#include <boost/ratio/mpl/arithmetic.hpp>
|
||||
#include <boost/ratio/mpl/comparison.hpp>
|
||||
|
||||
#endif // BOOST_RATIO_HPP
|
||||
30
test/external/boost/ratio/mpl/sign.hpp
vendored
Normal file
30
test/external/boost/ratio/mpl/sign.hpp
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// sign.hpp
|
||||
//
|
||||
// (C) Copyright 2011 Vicente J. Botet Escriba
|
||||
// Use, modification and distribution are subject to 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_RATIO_MPL_SIGN_HPP
|
||||
#define BOOST_RATIO_MPL_SIGN_HPP
|
||||
|
||||
#include <boost/ratio/ratio.hpp>
|
||||
#include <boost/ratio/mpl/numeric_cast.hpp>
|
||||
#include <boost/ratio/detail/mpl/sign.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
template<>
|
||||
struct sign_impl< rational_c_tag >
|
||||
{
|
||||
template< typename R > struct apply
|
||||
: ratio_sign<R>
|
||||
{
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_RATIO_MPL_SIGN_HPP
|
||||
30
test/external/boost/ratio/mpl/times.hpp
vendored
Normal file
30
test/external/boost/ratio/mpl/times.hpp
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// times.hpp
|
||||
//
|
||||
// (C) Copyright 2011 Vicente J. Botet Escriba
|
||||
// Use, modification and distribution are subject to 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_RATIO_MPL_TIMES_HPP
|
||||
#define BOOST_RATIO_MPL_TIMES_HPP
|
||||
|
||||
#include <boost/ratio/ratio.hpp>
|
||||
#include <boost/ratio/mpl/numeric_cast.hpp>
|
||||
#include <boost/mpl/times.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
template<>
|
||||
struct times_impl< rational_c_tag,rational_c_tag >
|
||||
{
|
||||
template< typename R1, typename R2 > struct apply
|
||||
: ratio_multiply<R1, R2>
|
||||
{
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // BOOST_RATIO_MPL_TIMES_HPP
|
||||
Reference in New Issue
Block a user