coord/ops: remove duplicate unary negation

This commit is contained in:
Danny Robson 2016-03-14 18:57:07 +11:00
parent 8035cbf46f
commit 27c7108c6d

View File

@ -200,24 +200,6 @@ namespace util {
SCALAR_OP(%=) SCALAR_OP(%=)
#undef SCALAR_OP #undef SCALAR_OP
//-------------------------------------------------------------------------
// negation
template <
size_t S,
typename T,
template<size_t,typename> class K
>
typename std::enable_if<
std::is_signed<T>::value,
K<S,T>
>::type
operator- (K<S,T> k)
{
for (auto &v: k)
v = -v;
return k;
}
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
// unary operators // unary operators