This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
1 Replies Last post: Sep 19, 2013 8:31 PM by Anton Makeev  
Mark Bernstein Newbie 7 posts since
Jul 30, 2013
Currently Being Moderated

Sep 13, 2013 8:43 PM

Safe Delete Clarification

I have a C++ class:

 

class Train : public Transport

{

public:

       Train();

       Train(const Mill&);

       Train(int what, int howMuch, ...);

       virtual ~ Train();

 

       Money& TicketPrice(Location* start,Location* end);

       };

 

This class once was useful, but nowadays we always use an Airplane instead. Now, Train is never used.  Safe Delete, however, won’t delete the class because it’s referenced by its own constructors.  Find Usages confirms that all the usages are internal to the class, so even if the constructors have side effects they can’t ever be called

 

Is this within the purview of Safe Delete?

Anton Makeev JetBrains 1,289 posts since
Dec 19, 2006
Currently Being Moderated
Sep 19, 2013 8:31 PM in response to: Mark Bernstein
Re: Safe Delete Clarification

Mark, could you please file a bug report in our tracker?

More Like This

  • Retrieving data ...