This commit is contained in:
邹晓航
2014-11-30 08:57:30 +08:00
parent c49b2f9559
commit 0d466c267a

View File

@@ -156,7 +156,8 @@ namespace TinySTL{
void avl_tree<T>::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_;