[libcxx-commits] [PATCH] D128146: [libc++] Use uninitialized algorithms for vector

Evgeny Eltsin via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Aug 4 05:29:22 PDT 2022


eaeltsin added a comment.

Thanks @philnik!

The code is from `libzim` - https://github.com/openzim/libzim/blob/966f7b217e9bc36dc30be6d9e46d51a2bfb7091c/src/zim_types.h#L36 . It doesn't look nice to me, and there definitely are multiple ways to make it work.

My question is more about the change in the compiler behavior when selecting the correct overloaded operator. Was the code clearly non standard-compliant before?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128146/new/

https://reviews.llvm.org/D128146



More information about the libcxx-commits mailing list