dynamic_bitset icon indicating copy to clipboard operation
dynamic_bitset copied to clipboard

dynamic_bitset move CTOR and operator should be noexcept if C++ standard is 17 or higher

Open d3matt opened this issue 1 year ago • 1 comments

The underlying std::vector's move CTOR and operator became noexcept with C++ 17. boost::dynamic_bitset should be able to follow suit in that case

d3matt avatar Jan 28 '25 16:01 d3matt

I'm pretty sure the noexcept specifier should match the one from std::vector. Something like:

noexcept(std::allocator_traits<Allocator>::propagate_on_container_move_assignment::value
|| std::allocator_traits<Allocator>::is_always_equal::value)

d3matt avatar Jan 28 '25 16:01 d3matt