Boost C++ Libraries: Ticket #12100: including <boost/accumulators/statistics/rolling_mean.hpp> brings static c++ initializers into my code https://svn.boost.org/trac10/ticket/12100 <p> At least I think so. </p> <p> If I #include &lt;boost/accumulators/statistics/rolling_mean.hpp&gt; </p> <p> Then I see that I have static variables that will need to be initialized. Because I want to include my code as a framework for other projects, we have a policy of avoiding having static initializers run (because of dynamic linkage). </p> <p> I believe the issue is with the extractors: </p> <blockquote> <p> namespace extract { </p> <blockquote> <p> extractor&lt;tag::lazy_rolling_mean&gt; const lazy_rolling_mean = {}; extractor&lt;tag::immediate_rolling_mean&gt; const immediate_rolling_mean = {}; extractor&lt;tag::rolling_mean&gt; const rolling_mean = {}; </p> </blockquote> </blockquote> <blockquote> <blockquote> <p> BOOST_ACCUMULATORS_IGNORE_GLOBAL(lazy_rolling_mean) </p> <blockquote> <p> BOOST_ACCUMULATORS_IGNORE_GLOBAL(immediate_rolling_mean) BOOST_ACCUMULATORS_IGNORE_GLOBAL(rolling_mean) </p> </blockquote> </blockquote> <p> } </p> </blockquote> <blockquote> <p> using extract::lazy_rolling_mean; using extract::immediate_rolling_mean; using extract::rolling_mean; </p> </blockquote> <p> I think lazy_rolling_mean is the issue. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12100 Trac 1.4.3