summaryrefslogtreecommitdiff
path: root/include/my_counter.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/my_counter.h')
-rw-r--r--include/my_counter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/my_counter.h b/include/my_counter.h
index c5cbe296df0..f85b8e80bd7 100644
--- a/include/my_counter.h
+++ b/include/my_counter.h
@@ -31,7 +31,7 @@ public:
Atomic_counter(const Atomic_counter<Type> &rhs)
{ m_counter.store(rhs, std::memory_order_relaxed); }
Atomic_counter(Type val): m_counter(val) {}
- Atomic_counter() {}
+ Atomic_counter() = default;
Type operator++(int) { return add(1); }
Type operator--(int) { return sub(1); }