boostorg / histogram

Fast multi-dimensional generalized histogram with convenient interface for C++14
Boost Software License 1.0
313 stars 74 forks source link

Support floating point numbers in thread_safe accumulator #315

Closed HDembinski closed 3 years ago

HDembinski commented 3 years ago

This adds a workaround for floating point numbers that I learned from discussion with @emanca.

We further stop inheriting from std::atomic for better encapsulation.

HDembinski commented 3 years ago

@henryiii @jpivarski Any comments on this?

Not inheriting from std::atomic anymore is technically interface-breaking, but people should not use this accumulator directly, so I think it is acceptable.