mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-26 20:38:45 +08:00
Removed typed += & -= operators and replaced with templates.
This commit is contained in:
parent
fb5136720c
commit
903d2dd148
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user