boostorg / histogram

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

Replace axis::traits with uniform wrapper #284

Open HDembinski opened 4 years ago

HDembinski commented 4 years ago

Perhaps histogram could wrap external classes with an interface class that supplements all optional interface. If this works, it would greatly simplify the library compared to the current approach with axis::traits.

HDembinski commented 3 years ago

This would have to be a CRTP class, so that implementations in the user-provided class override the default implementations in the interface class.