follow up on previous commit - convert to common_type
prior applying /
(MSCV C4804)
This commit is contained in:
parent
376ffba7fe
commit
35ab8cccdc
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue