[accumulator] std::chrono::duration in boost::accumulator

I want to build a histogram of
`std::chrono::high_resolution_clock::duration` object. For this issue i
wanted to use boost::accumulators as the framework.
As it did not compile in my project i teared it down and based it on a
running example with `double` as a data type.
My general goal on my project is to do use for everything united types.
Time and all measured stuff. I would want to avoid to use `.count()` on
the duration.
Is there any known workaround around this?
it is not dependent on the compiler as it seems. With gcc 6.3 it failes too.
It compiles when i use
clang++-3.9 --std=c++14 -g -O0 main.cpp
But when i set the define USE_CHRONO it failes with the error:
clang++-3.9 --std=c++14 -g -O0 -DUSE_CHRONO main.cpp
In file included from main.cpp:7:
/usr/include/boost/accumulators/statistics/density.hpp:75:15: error:
no matching constructor for initialization of 'array_type' (aka
'vector
') , samples_in_bin(num_bins + 2, 0.) ^ ~~~~~~~~~~~~~~~~
and here is my teared down example. I used this site as a base and
exhanged double to data_t.
http://programmingexamples.net/wiki/CPP/Boost/Histogram
#include <vector>
#include <algorithm>
#include <iostream>
#include <chrono>
#include
participants (1)
-
georg@schorsch-tech.de