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: Alex Wang <aw1621107@…> 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)

stack-trace (10.1 KB ) - added by Alex Wang <aw1621107@…> 6 years ago.
Stack trace

Download all attachments as: .zip

Change History (3)

by Alex Wang <aw1621107@…>, 6 years ago

Attachment: stack-trace added

Stack trace

comment:1 by Alex Wang <aw1621107@…>, 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.

comment:2 by Alex Wang <aw1621107@…>, 6 years ago

Never mind, this was my fault. This can be closed.

Note: See TracTickets for help on using tickets.