🔧 use correct result types

This commit is contained in:
Maks Skorokhod 2017-11-22 12:50:23 +03:00
parent c31fd8ba88
commit f09855e6f8
No known key found for this signature in database
GPG Key ID: 23233B8320707983

View File

@ -436,7 +436,7 @@ struct AbsImpl
template <typename A, typename B>
struct GCDImpl
{
using ResultType = typename NumberTraits::ResultOfGCD<A, B>::Type;
using ResultType = typename NumberTraits::ResultOfIntegerDivision<A, B>::Type;
template <typename Result = ResultType>
static inline Result apply(A a, B b)
@ -452,7 +452,7 @@ struct GCDImpl
template <typename A, typename B>
struct LCMImpl
{
using ResultType = typename NumberTraits::ResultOfLCM<A, B>::Type;
using ResultType = typename NumberTraits::ResultOfAdditionMultiplication<A, B>::Type;
template <typename Result = ResultType>
static inline Result apply(A a, B b)