diff --git a/TinySTL/AVLTree.h b/TinySTL/AVLTree.h index bce8948..042dfe3 100644 --- a/TinySTL/AVLTree.h +++ b/TinySTL/AVLTree.h @@ -156,7 +156,8 @@ namespace TinySTL{ void avl_tree::insert_elem(const T& val, node *&p){ if (p == 0){ p = dataAllocator::allocate(); - p->data_ = val; + //p->data_ = val; + construct(&(p->data_), val); p->left_ = p->right_ = 0; p->height_ = 1; ++size_;