bugfix: delete copy ctr and copy assign for non-trivial class

master
FengJungle 2021-10-20 00:52:42 +08:00
parent ad8fb8e31c
commit 8c3b7a6a87
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,8 @@ public:
this->N = iN;
sortStrategy = nullptr;
}
Context(const Context& context) = delete;
Context& operator=(const Context&) = delete;
~Context()
{
if(sortStrategy)