From: <ric...@us...> - 2011-10-03 04:39:23
|
Revision: 1129 http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1129&view=rev Author: rich_sposato Date: 2011-10-03 04:39:17 +0000 (Mon, 03 Oct 2011) Log Message: ----------- Changed order of actions to remove warning. Modified Paths: -------------- trunk/include/loki/Singleton.h Modified: trunk/include/loki/Singleton.h =================================================================== --- trunk/include/loki/Singleton.h 2011-10-03 04:00:22 UTC (rev 1128) +++ trunk/include/loki/Singleton.h 2011-10-03 04:39:17 UTC (rev 1129) @@ -829,8 +829,8 @@ { if (destroyed_) { + destroyed_ = false; LifetimePolicy<T>::OnDeadReference(); - destroyed_ = false; } pInstance_ = CreationPolicy<T>::Create(); LifetimePolicy<T>::ScheduleDestruction(pInstance_, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |