IntrusiveList: Remove redundant constructor

Problem:
- The constructor is defined to be the default constructor.

Solution:
- Let the compiler generate the destructor by setting it to the
  default.
This commit is contained in:
Lenny Maiorani 2021-05-21 17:08:04 -06:00 committed by Linus Groh
parent 1965d60aeb
commit 1c6d2ff21c
Notes: sideshowbarker 2024-07-18 17:34:14 +09:00

View File

@ -46,7 +46,7 @@ private:
template<class T, typename Container, IntrusiveListNode<T, Container> T::*member>
class IntrusiveList {
public:
IntrusiveList();
IntrusiveList() = default;
~IntrusiveList();
void clear();
@ -165,11 +165,6 @@ inline typename IntrusiveList<T, Container, member>::Iterator& IntrusiveList<T,
return *this;
}
template<class T, typename Container, IntrusiveListNode<T, Container> T::*member>
inline IntrusiveList<T, Container, member>::IntrusiveList()
{
}
template<class T, typename Container, IntrusiveListNode<T, Container> T::*member>
inline IntrusiveList<T, Container, member>::~IntrusiveList()
{