Boost C++ Libraries: Ticket #3112: Tag object initialization not guaranteed legal https://svn.boost.org/trac10/ticket/3112 <p> We should be using this technique: <a class="ext-link" href="http://tinyurl.com/threadsafe-static-globals"><span class="icon">​</span>http://tinyurl.com/threadsafe-static-globals</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3112 Trac 1.4.3 Daniel Wallin Fri, 29 May 2009 18:31:49 GMT <link>https://svn.boost.org/trac10/ticket/3112#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3112#comment:1</guid> <description> <p> Isn't that exactly what we are already doing? </p> <pre class="wiki">template &lt;class tag&gt; struct keyword { ... static keyword&lt;Tag&gt; const instance; }; template &lt;class Tag&gt; keyword&lt;Tag&gt; const keyword&lt;Tag&gt;::instance = {}; ... namespace \ { \ ::boost::parameter::keyword&lt;tag_namespace::name&gt; const&amp; name \ = ::boost::parameter::keyword&lt;tag_namespace::name&gt;::instance;\ } </pre> </description> <category>Ticket</category> </item> </channel> </rss>