From ca07bd7394c3504517b1517baac0749587e4c955 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Wed, 22 Feb 2023 18:35:50 +0800 Subject: [PATCH] Update namedict.h --- src/namedict.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/namedict.h b/src/namedict.h index fb8fc36a..af46a28a 100644 --- a/src/namedict.h +++ b/src/namedict.h @@ -30,15 +30,7 @@ namespace pkpy{ for(int i=0; i<_capacity; i++) _a[i] = other._a[i]; } - NameDict& operator=(const NameDict& other){ - delete[] _a; - this->_capacity = other._capacity; - this->_size = other._size; - this->_a = new NameDictNode[_capacity]; - for(int i=0; i<_capacity; i++) _a[i] = other._a[i]; - return *this; - } - + NameDict& operator=(const NameDict&) = delete; NameDict(NameDict&&) = delete; NameDict& operator=(NameDict&&) = delete;