Hi,<div><br></div><div>I have an assert when exiting my application using the serialization lib of boost 1.38.</div><div><br></div><div><div>�� �BOOST_DLLEXPORT static T &amp; get_instance() {</div><div>�� � � �static detail::singleton_wrapper&lt;T&gt; t;</div>
<div>�� � � �// refer to instance, causing it to be instantiated (and</div><div>�� � � �// initialized at startup on working compilers)</div><div>�� � � �assert(! detail::singleton_wrapper&lt;T&gt;::m_is_destroyed);</div>
<div>�� � � �use(instance);</div><div>�� � � �return static_cast&lt;T &amp;&gt;(t);</div><div>�� �}</div><div><br></div><div>The same code doesn&#39;t assert on windows XP so I guess that&#39;s something messy with static allocation on the iphone platform.</div>
<div>On the iphone, the load/save code works well as long as it&#39;s not called when the application exit.</div><div><br></div><div>As far I as I understand, I need to move my exit code somewhere else, when those singleton are still allocated.</div>
<div>Can somebody confirm that? Or maybe I&#39;m missing something...</div><div><br></div><div>Any feedback warmly welcome!</div><div><br></div><div>thanks</div></div>