follow up on previous commit - convert to common_type prior applying / (MSCV C4804)

This commit is contained in:
artemp 2016-02-03 12:45:29 +01:00
parent 376ffba7fe
commit 35ab8cccdc

View file

@ -447,7 +447,8 @@ struct div
value_type operator() (T1 const& lhs, T2 const& rhs) const
{
if (rhs == 0) return value_type();
return typename std::common_type<T1,T2>::type{ lhs / rhs };
using common_type = typename std::common_type<T1,T2>::type;
return common_type(lhs)/common_type(rhs);
}
};