Removed typed += & -= operators and replaced with templates.

This commit is contained in:
John Wellbelove 2018-08-08 21:57:40 +01:00
parent fb5136720c
commit 903d2dd148

View File

@ -84,25 +84,15 @@ namespace etl
return *this;
}
inline debug_count& operator +=(int32_t n)
{
count += n;
return *this;
}
inline debug_count& operator -=(int32_t n)
{
count -= n;
return *this;
}
inline debug_count& operator +=(size_t n)
template <typename T>
inline debug_count& operator +=(T n)
{
count += int32_t(n);
return *this;
}
inline debug_count& operator -=(size_t n)
template <typename T>
inline debug_count& operator -=(T n)
{
count -= int32_t(n);
return *this;