From: Gerrit V. <vo...@ca...> - 2008-06-20 00:48:38
|
Hi, On Thu, 2008-06-19 at 18:06 -0500, Carsten Neumann wrote: > Hi, > > can somebody remember or think of a reason for the GraphOp d'tor being > protected? Because they were move to be reference counted so that the don't leak memory. > AFAIKS this means it is impossible to delete GraphOps not quite ;-) > GraphOp *go = GraphOpFactory::the()->create("MyGraphOp"); > delete go; > > complains about the delete and the factory does not want them back either ;) try subref(go); kind regards, gerrit |