mirror of
https://github.com/boostorg/ratio.git
synced 2025-05-09 15:14:01 +00:00
Make ratio_gcd a template alias for consistency
This commit is contained in:
parent
a259a0ee1c
commit
bced40209b
@ -38,11 +38,11 @@ time2_demo contained this comment:
|
||||
namespace boost
|
||||
{
|
||||
|
||||
template <class R1, class R2> struct ratio_gcd: ratio<
|
||||
// extension used by Chrono
|
||||
|
||||
template <class R1, class R2> using ratio_gcd = typename ratio<
|
||||
ratio_detail::gcd<R1::num, R2::num>::value,
|
||||
ratio_detail::lcm<R1::den, R2::den>::value>::type
|
||||
{
|
||||
};
|
||||
ratio_detail::lcm<R1::den, R2::den>::value>::type;
|
||||
|
||||
} // namespace boost
|
||||
|
||||
|
@ -52,10 +52,6 @@ using std::ratio_subtract;
|
||||
using std::ratio_multiply;
|
||||
using std::ratio_divide;
|
||||
|
||||
// extension used by Chrono
|
||||
template <class R1, class R2> struct ratio_gcd;
|
||||
// template <class R1, class R2> struct ratio_lcm;
|
||||
|
||||
// ratio comparison
|
||||
using std::ratio_equal;
|
||||
using std::ratio_not_equal;
|
||||
|
Loading…
x
Reference in New Issue
Block a user