summaryrefslogtreecommitdiff
path: root/include/ilist.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ilist.h')
-rw-r--r--include/ilist.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/ilist.h b/include/ilist.h
index 92812ba8f5d..15a2c272fb9 100644
--- a/include/ilist.h
+++ b/include/ilist.h
@@ -27,12 +27,11 @@
// Derive your class from this struct to insert to a linked list.
template <class Tag= void> struct ilist_node
{
- ilist_node() noexcept
#ifndef DBUG_OFF
- : next(NULL), prev(NULL)
+ ilist_node() noexcept : next(NULL), prev(NULL) {}
+#else
+ ilist_node() = default;
#endif
- {
- }
ilist_node(ilist_node *next, ilist_node *prev) noexcept
: next(next), prev(prev)