Boost C++ Libraries: Ticket #12472: accumulator statistics.hpp may cause build to fail due to no viable overloaded operator[] https://svn.boost.org/trac10/ticket/12472 <p> This occurred on both 1.61.0 and trunk. This was tested using Apple's Xcode 8 toolchain on macOS 10.12, through CMake, with Boost installed through Homebrew. </p> <p> This program shows the error on my computer: </p> <pre class="wiki">#include &lt;boost/accumulators/accumulators.hpp&gt; #include &lt;boost/accumulators/statistics.hpp&gt; using namespace boost::accumulators; static accumulator_set&lt;int, stats&lt;tag::tail&lt;right&gt;&gt;&gt; acc; int main(int argv, char* argc[]) { return 0; } </pre><p> Compilation was done using the command <code>clang++ -std=c++11 test.cpp</code> </p> <p> Interestingly, the build succeeds when <code>#include &lt;boost/accumulators/statistics/tail.hpp&gt;</code> is used instead of including <code>statistics.hpp</code>. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12472 Trac 1.4.3 Alex Wang <aw1621107@…> Tue, 20 Sep 2016 20:29:09 GMT attachment set https://svn.boost.org/trac10/ticket/12472 https://svn.boost.org/trac10/ticket/12472 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">stack-trace</span> </li> </ul> <p> Stack trace </p> Ticket Alex Wang <aw1621107@…> Fri, 30 Sep 2016 15:57:23 GMT <link>https://svn.boost.org/trac10/ticket/12472#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12472#comment:1</guid> <description> <p> This appears to be present in the latest git checkout as of 30 Sept 2016, so the 1.62.0 release didn't fix this. </p> </description> <category>Ticket</category> </item> <item> <author>Alex Wang <aw1621107@…></author> <pubDate>Fri, 30 Sep 2016 16:09:37 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12472#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12472#comment:2</guid> <description> <p> Never mind, this was my fault. This can be closed. </p> </description> <category>Ticket</category> </item> </channel> </rss>