Skip to content

Commit e3327a8

Browse files
committed
Add type_traits overloads
1 parent 88d0d53 commit e3327a8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/boost/decimal/type_traits.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,27 @@ namespace boost {
4040
BOOST_DECIMAL_EXPORT template <> struct is_arithmetic<boost::decimal::decimal32> : public true_type {};
4141
BOOST_DECIMAL_EXPORT template <> struct is_arithmetic<boost::decimal::decimal64> : public true_type {};
4242
BOOST_DECIMAL_EXPORT template <> struct is_arithmetic<boost::decimal::decimal128> : public true_type {};
43+
BOOST_DECIMAL_EXPORT template <> struct is_arithmetic<boost::decimal::decimal32_fast> : public true_type {};
4344

4445
BOOST_DECIMAL_EXPORT template <> struct is_fundamental<boost::decimal::decimal32> : public true_type {};
4546
BOOST_DECIMAL_EXPORT template <> struct is_fundamental<boost::decimal::decimal64> : public true_type {};
4647
BOOST_DECIMAL_EXPORT template <> struct is_fundamental<boost::decimal::decimal128> : public true_type {};
48+
BOOST_DECIMAL_EXPORT template <> struct is_fundamental<boost::decimal::decimal32_fast> : public true_type {};
4749

4850
BOOST_DECIMAL_EXPORT template <> struct is_scalar<boost::decimal::decimal32> : public true_type {};
4951
BOOST_DECIMAL_EXPORT template <> struct is_scalar<boost::decimal::decimal64> : public true_type {};
5052
BOOST_DECIMAL_EXPORT template <> struct is_scalar<boost::decimal::decimal128> : public true_type {};
53+
BOOST_DECIMAL_EXPORT template <> struct is_scalar<boost::decimal::decimal32_fast> : public true_type {};
5154

5255
BOOST_DECIMAL_EXPORT template <> struct is_class<boost::decimal::decimal32> : public false_type {};
5356
BOOST_DECIMAL_EXPORT template <> struct is_class<boost::decimal::decimal64> : public false_type {};
5457
BOOST_DECIMAL_EXPORT template <> struct is_class<boost::decimal::decimal128> : public false_type {};
58+
BOOST_DECIMAL_EXPORT template <> struct is_class<boost::decimal::decimal32_fast> : public false_type {};
5559

5660
BOOST_DECIMAL_EXPORT template <> struct is_pod<boost::decimal::decimal32> : public true_type {};
5761
BOOST_DECIMAL_EXPORT template <> struct is_pod<boost::decimal::decimal64> : public true_type {};
5862
BOOST_DECIMAL_EXPORT template <> struct is_pod<boost::decimal::decimal128> : public true_type {};
63+
BOOST_DECIMAL_EXPORT template <> struct is_pod<boost::decimal::decimal32_fast> : public true_type {};
5964

6065

6166
} // namespace boost
@@ -86,6 +91,7 @@ BOOST_DECIMAL_EXPORT template <typename T> struct is_decimal_floating_point<vola
8691
BOOST_DECIMAL_EXPORT template <> struct is_decimal_floating_point<boost::decimal::decimal32> : public decimal::detail::local_true_type{};
8792
BOOST_DECIMAL_EXPORT template <> struct is_decimal_floating_point<boost::decimal::decimal64> : public decimal::detail::local_true_type{};
8893
BOOST_DECIMAL_EXPORT template <> struct is_decimal_floating_point<boost::decimal::decimal128> : public decimal::detail::local_true_type{};
94+
BOOST_DECIMAL_EXPORT template <> struct is_decimal_floating_point<boost::decimal::decimal32_fast> : public decimal::detail::local_true_type {};
8995

9096
#if defined(__cpp_inline_variables) && __cpp_inline_variables >= 201606L
9197
BOOST_DECIMAL_EXPORT template <typename T>

0 commit comments

Comments
 (0)