Reduce std::numeric_limits dependency

Please, stop pretending...
You need these templates for generic code.
In other words, in another templates.
Stop increasing compilation time for no reason.
This commit is contained in:
Nekotekina 2020-12-12 12:00:21 +03:00
parent bc7acf9f7a
commit 6e05dcadb6
8 changed files with 18 additions and 19 deletions

View file

@ -1463,7 +1463,7 @@ public:
}
// Conditionally decrement
bool try_dec(simple_type greater_than = std::numeric_limits<simple_type>::min())
bool try_dec(simple_type greater_than)
{
type _new, old = atomic_storage<type>::load(m_data);
@ -1486,7 +1486,7 @@ public:
}
// Conditionally increment
bool try_inc(simple_type less_than = std::numeric_limits<simple_type>::max())
bool try_inc(simple_type less_than)
{
type _new, old = atomic_storage<type>::load(m_data);