BelisaDi

0

votes
0

answer
29

views

How I make an overloaded operator illegal?

I'm planning to implement an unique smart pointer in c++, so I want to make illegal to use the '=' operator. How can I do it? This is the class that I have: template class uniquePointer{ private: dataType *pointer; public: uniquePointer(){ pointer = nullptr; } uniquePointer(dataType *value){ poin...
BelisaDi