Because RemoveSimulation(....) takes arguments which are not available inside the SimulatonId object/destructor. I apologize for being misleading by not being clear about the args, Regards, -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Gennadiy Rozental Sent: 24 November 2008 05:01 To: boost-users@lists.boost.org Subject: Re: [Boost-users] boost test with assert() Hicham Mouline <hicham <at> mouline.org> writes:
Hmm. Sadly, RemoveSimulation() does other things that SimulationId knows nothing about ...
Why does it have to know anything about it? It's just call the function. How does it matter if you call it from outside - on function level, or from inside in destructor? Gennadiy