martinus / robin-hood-hashing

Fast & memory efficient hashtable based on robin hood hashing for C++11/14/17/20
https://gitter.im/martinus/robin-hood-hashing
MIT License
1.5k stars 142 forks source link

Fix compiling with MSVC 2015 #118

Closed jeremyg-lunarg closed 3 years ago

jeremyg-lunarg commented 3 years ago

The pair(piecewise_construct_t, ...) constructor causes the error "C2476: ‘constexpr’ constructor does not initialize all members"

The best information about this error is: https://devblogs.microsoft.com/cppblog/c11-constant-expressions-in-visual-studio-2015-rc/ but the error happens even with 2015 Update 3.

The test cases that use piecewise_construct_t, try_emplace() or compact() cause internal compiler errors.