mirror of
https://github.com/boostorg/intrusive.git
synced 2025-08-02 14:04:36 +02:00
Fix error in nonhook_node due to missing copy-constructor and assignment implementstion
This commit is contained in:
@@ -43,13 +43,12 @@ struct nonhook_node_member : public NodeTraits::node
|
||||
nonhook_node_member(const nonhook_node_member& rhs)
|
||||
{
|
||||
BOOST_TEST(!rhs.is_linked());
|
||||
*this = rhs;
|
||||
node_algorithms::init(pointer_traits<node_ptr>::pointer_to(static_cast< node& >(*this)));
|
||||
}
|
||||
|
||||
nonhook_node_member& operator = (const nonhook_node_member& rhs)
|
||||
{
|
||||
BOOST_TEST(!this->is_linked() && !rhs.is_linked());
|
||||
static_cast< node& >(*this) = rhs;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user