Opened 6 years ago
Last modified 6 years ago
#12472 new Bugs
accumulator statistics.hpp may cause build to fail due to no viable overloaded operator[]
| Reported by: | Owned by: | Eric Niebler | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | accumulator |
| Version: | Boost 1.61.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
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.
Attachments (1)
Change History (3)
by , 6 years ago
| Attachment: | stack-trace added |
|---|
comment:1 by , 6 years ago
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.
Note:
See TracTickets
for help on using tickets.

Stack trace