Subject: [Boost-bugs] [Boost C++ Libraries] #12472: accumulator statistics.hpp may cause build to fail due to no viable overloaded operator[]
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-09-20 20:28:28
#12472: accumulator statistics.hpp may cause build to fail due to no viable
overloaded operator[]
-------------------------------------+--------------------------
Reporter: Alex Wang <aw1621107@â¦> | Owner: eric_niebler
Type: Bugs | Status: new
Milestone: To Be Determined | Component: accumulator
Version: Boost 1.61.0 | Severity: Problem
Keywords: |
-------------------------------------+--------------------------
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.
This program shows the error on my computer:
{{{
#include <boost/accumulators/accumulators.hpp>
#include <boost/accumulators/statistics.hpp>
using namespace boost::accumulators;
static accumulator_set<int, stats<tag::tail<right>>> acc;
int main(int argv, char* argc[]) {
return 0;
}
}}}
Compilation was done using the command `clang++ -std=c++11 test.cpp`
Interestingly, the build succeeds when `#include
<boost/accumulators/statistics/tail.hpp>` is used instead of including
`statistics.hpp`.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12472> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC