Copy Constructor with assignment overloading syntax?
问题 I am working with writing the big five(copy constructor, copy assignment operator, move constructor, move assignment operator, destructor). And I've hit a bit of a snag with the copy constructor syntax. Say I have a class foo that has the following private members: template<class data> // edit class foo{ private: int size, cursor; // Size is my array size, and cursor is the index I am currently pointing at data * dataArray; // edit } If I were to write a constructor for this of some arbitrary