mirror of
https://github.com/boostorg/unordered.git
synced 2026-02-17 02:02:10 +00:00
e03a8732a676ca7ff8b2e03aa9ad50c30a21cb81
std::allocator::construct uses a C-style cast to void pointer, so it can accept const pointers, but allocator_traits::construct uses a static_cast by default, so const pointers don't work. This means the implementation needs to cast away const when constructing members of a std::pair. This wouldn't happen if piecewise construction was used, as the members could be constructed normally.
Description
Languages
C++
98.6%
Python
0.8%
CMake
0.5%