// Boost.Geometry (aka GGL, Generic Geometry Library)
// Unit Test
-// Copyright (c) 2015, Oracle and/or its affiliates.
+// Copyright (c) 2015-2020, Oracle and/or its affiliates.
// Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
+// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
// Licensed under the Boost Software License version 1.0.
// http://www.boost.org/users/license.html
#include <boost/test/included/unit_test.hpp>
#include <boost/config.hpp>
-#include <boost/type_traits/is_same.hpp>
-#include <boost/type_traits/is_unsigned.hpp>
#include <geometry_test_common.hpp>
template
<
typename T,
- bool Signed = boost::is_fundamental<T>::type::value
- && ! boost::is_unsigned<T>::type::value
+ bool Signed = std::is_fundamental<T>::value
+ && ! std::is_unsigned<T>::value
>
struct absolute_value
{
<
typename Integral,
typename Promoted,
- bool Signed = ! boost::is_unsigned<Promoted>::type::value
+ bool Signed = ! std::is_unsigned<Promoted>::value
>
struct test_max_values
{
template
<
typename T,
- bool IsFundamental = boost::is_fundamental<T>::type::value
+ bool IsFundamental = std::is_fundamental<T>::value
>
-struct bit_size_impl : boost::mpl::size_t<0>
+struct bit_size_impl : std::integral_constant<std::size_t, 0>
{};
template <typename T>
Type, PromoteUnsignedToUnsigned
>::type promoted_integral_type;
- bool const same_types = boost::is_same
+ bool const same_types = std::is_same
<
promoted_integral_type, ExpectedPromotedType
- >::type::value;
+ >::value;
BOOST_CHECK_MESSAGE(same_types,
"case ID: " << case_id
<< "; expected: "
<< typeid(ExpectedPromotedType).name());
- if (BOOST_GEOMETRY_CONDITION((! boost::is_same
+ if (BOOST_GEOMETRY_CONDITION((! std::is_same
<
Type, promoted_integral_type
- >::type::value)))
+ >::value)))
{
test_max_values<Type, promoted_integral_type>::apply();
}
<
typename T,
bool PromoteUnsignedToUnsigned = false,
- bool IsSigned = ! boost::is_unsigned<T>::type::value
+ bool IsSigned = ! std::is_unsigned<T>::value
>
struct test_promotion
{
tester2::apply<float, float>("fp-f");
tester2::apply<double, double>("fp-d");
tester2::apply<long double, long double>("fp-ld");
-
-#ifdef HAVE_TTMATH
- tester1::apply<ttmath_big, ttmath_big>("fp-tt");
- tester2::apply<ttmath_big, ttmath_big>("fp-tt");
-#endif
}