Boost C++ Libraries: Ticket #3201: Error compiling example https://svn.boost.org/trac10/ticket/3201 <p> When building the examples with cmake, I get the following error: </p> <p> [ 58%] Building CXX object </p> <blockquote class="citation"> <p> libs/accumulators/example/CMakeFiles/accumulators-accumulators_example.dir/main.cpp.o /home/doriad/src/boost-trunk/boost/accumulators/statistics_fwd.hpp: In function ‘void example1()’: /home/doriad/src/boost-trunk/boost/accumulators/statistics_fwd.hpp:87: error: ‘template&lt;int N&gt; struct boost::accumulators::tag::moment’ is not a function, /home/doriad/src/boost-trunk/boost/accumulators/statistics/moment.hpp:104: error: conflict with ‘template&lt;int T2, class Arg1, class A0, class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8, class A9, class A10, class A11, class A12, class A13, class A14&gt; typename boost::accumulators::detail::extractor_result&lt;Arg1, boost::accumulators::tag::moment&lt;T2&gt; &gt;::type boost::accumulators::extract::moment(const Arg1&amp;, const A0&amp;, const A1&amp;, const A2&amp;, const A3&amp;, const A4&amp;, const A5&amp;, const A6&amp;, const A7&amp;, const A8&amp;, const A9&amp;, const A10&amp;, const A11&amp;, const A12&amp;, const A13&amp;, const A14&amp;)’ /home/doriad/src/boost-trunk/libs/accumulators/example/main.cpp:63: error: in call to ‘moment’ </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3201 Trac 1.4.3 Eric Niebler Mon, 20 Jul 2009 21:11:53 GMT <link>https://svn.boost.org/trac10/ticket/3201#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3201#comment:1</guid> <description> <p> I cannot reproduce this error with either gcc 3.4 or gcc 4.3. What compiler are you using? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Eric Niebler</dc:creator> <pubDate>Wed, 22 Jul 2009 01:55:46 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3201#comment:2 https://svn.boost.org/trac10/ticket/3201#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Oh, I see. The problem happens with gcc-4.4. Some strange name-lookup issue. I've fixed it in changeset <a class="changeset" href="https://svn.boost.org/trac10/changeset/55076" title="portability fixed for gcc-4.4">[55076]</a>. I'll let the tests cycle and merge it to the release branch in time for Boost 1.40. </p> Ticket