The only time I know of is when we call the assignment operator. Is there any other moments I should do it? Like any other operator where memory management would be useful?

Creating objects dyamically (on the free store) is the 'situation', where you must take care of used resource (in this case, memory). You might want to read about 'rule of three' and 'rule of five' :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.