unordered_map.hpp:425:46: warning: performing pointer arithmetic on a null pointer has undefined behavior if the offset is nonzero [-Wnull-pointer-arithmetic]
*new_buckets = EntryPointer(nullptr) + ptrdiff_t(1);
That line looks harmless to me, but undefined behavior should be avoided if at all possible.
That line looks harmless to me, but undefined behavior should be avoided if at all possible.