@@ -13,43 +13,44 @@ namespace internal {
1313using namespace boost ::multiprecision;
1414using namespace principia ::base::_traits;
1515
16- // The `cpp_ ` concepts should be used sparingly, and only in places where the
17- // Boost multiprecision API differs from ours or from the standard C++ API. At
18- // any rate, the multiprecision traits should never be used directly.
16+ // The `boost_cpp_ ` concepts should be used sparingly, and only in places where
17+ // the Boost multiprecision API differs from ours or from the standard C++ API.
18+ // At any rate, the multiprecision traits should never be used directly.
1919
2020template <typename T>
21- concept cpp_number = (is_number<T>::value || is_number_expression<T>::value) &&
21+ concept boost_cpp_number = (is_number<T>::value || is_number_expression<T>::value) &&
2222 number_category<T>::value != number_kind_unknown;
2323
2424template <typename T>
25- concept cpp_bin_float =
26- cpp_number <T> && number_category<T>::value == number_kind_floating_point;
25+ concept boost_cpp_bin_float =
26+ boost_cpp_number <T> && number_category<T>::value == number_kind_floating_point;
2727
2828template <typename T>
29- concept cpp_int =
30- cpp_number <T> && number_category<T>::value == number_kind_integer;
29+ concept boost_cpp_int =
30+ boost_cpp_number <T> && number_category<T>::value == number_kind_integer;
3131
3232template <typename T>
33- concept cpp_rational =
34- cpp_number <T> && number_category<T>::value == number_kind_rational;
33+ concept boost_cpp_rational =
34+ boost_cpp_number <T> && number_category<T>::value == number_kind_rational;
3535
3636
3737template <typename T>
38- concept discrete = std::integral<T> || cpp_int <T>;
38+ concept discrete = std::integral<T> || boost_cpp_int <T>;
3939
4040template <typename T>
41- concept countable = discrete<T> || cpp_rational <T>;
41+ concept countable = discrete<T> || boost_cpp_rational <T>;
4242
4343template <typename T>
44- concept continuum = std::floating_point<T> || cpp_bin_float <T>;
44+ concept continuum = std::floating_point<T> || boost_cpp_bin_float <T>;
4545
4646} // namespace internal
4747
48- // `cpp_int` and `cpp_rational` are not exported on purpose.
48+ using internal::boost_cpp_bin_float;
49+ using internal::boost_cpp_int;
50+ using internal::boost_cpp_number;
51+ using internal::boost_cpp_rational;
4952using internal::continuum;
5053using internal::countable;
51- using internal::cpp_bin_float;
52- using internal::cpp_number;
5354using internal::discrete;
5455
5556} // namespace _cantor
0 commit comments