[libcxx-commits] [libcxx] [libcxx] fix mi_mode_test failure with libc++-21 (PR #153969)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Thu Aug 21 01:27:44 PDT 2025


philnik777 wrote:

> > IMO it's more important to print the elements in the order they are actually iterated than having a super robust test, so I don't think it's a good idea to sort the elements in the unordered map before printing. We want to stay faithful to what is actually in memory.
> 
> I'm sorry but I don't really comprehend what you're suggesting here.

I'm saying that we shouldn't sort the elements, since that's not what's in the container. You wouldn't expect your `vector` to get sorted either.

https://github.com/llvm/llvm-project/pull/153969


More information about the libcxx-commits mailing list