mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-17 06:38:28 +00:00
AVL node/tree: make non-copyable
AVL trees can't be copied with the default copy constructor as the parent pointer of the first item of both of the resulting trees would point to the original tree. Copying an AVL node, however, generally violates the integrity of the corresponding tree. The copy constructor of Avl_tree is used in some places but in those places it can be replaced easily. So, this commit deletes the copy constructor of Avl_node_base which makes Avl_node and Avl_tree non-copyable. Issue #2654
This commit is contained in:
committed by
Norman Feske
parent
4e9ff5ad7b
commit
abf9557bb5
@ -28,7 +28,7 @@ class Genode::Avl_string_base : public Avl_node<Avl_string_base>
|
||||
{
|
||||
private:
|
||||
|
||||
const char *_str;
|
||||
struct { const char *_str; };
|
||||
|
||||
protected:
|
||||
|
||||
|
Reference in New Issue
Block a user