boostorg / histogram

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

Avoid try, catch, throw and use alloc_construct and alloc_destroy #190

Closed glenfe closed 5 years ago

glenfe commented 5 years ago

This change:

Note that you don't need to use allocator_traits for allocate() and deallocate(). Every allocator is required to provide them.

codecov[bot] commented 5 years ago

Codecov Report

Merging #190 into develop will decrease coverage by 0.04%. The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #190      +/-   ##
===========================================
- Coverage      100%   99.95%   -0.05%     
===========================================
  Files           44       44              
  Lines         2126     2123       -3     
===========================================
- Hits          2126     2122       -4     
- Misses           0        1       +1
Impacted Files Coverage Δ
include/boost/histogram/detail/variant.hpp 100% <100%> (ø) :arrow_up:
include/boost/histogram/unlimited_storage.hpp 100% <100%> (ø) :arrow_up:
include/boost/histogram/detail/large_int.hpp 99.27% <0%> (-0.73%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 8602102...1d0bcd3. Read the comment docs.

HDembinski commented 5 years ago

Beautiful solution, much better than using macros and makes better use of existing library code. Thank you!

HDembinski commented 5 years ago

On 12. May 2019, at 18:43, Glen Fernandes notifications@github.com wrote:

The failure appears to be that Appveyor is using Boost.Core from master instead of Boost.Core from develop. I'll merge Core develop to master later today.

Yes, I need to fix the Appveyor build so that it correctly uses the develop and master branches, as I am doing already in Travis.