[libcxx-commits] [PATCH] D131363: [libc++] Implement `operator<=>` for `error_category`
Adrian Vogelsgesang via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Aug 8 06:53:23 PDT 2022
avogelsgesang added inline comments.
================
Comment at: libcxx/include/system_error:227
+#if _LIBCPP_STD_VER <= 17
+
----------------
mumbleskates wrote:
> nit: Most checks of `_LIBCPP_STD_VER` are in terms of `>`, such that these blocks would be reversed, with C++20-onwards behavior gated behind `_LIBCPP_STD_VER > 17`. For consistency's sake I think it would be good to match that.
I usually prefer it this way around, because I value "keeping the order between synopsis and implementation consistent" over "consistently use `_LIBCPP_STD_VER > 17`".
Do you think swapping the `#if` here is worth it, although that would mean that the order in the synopsis no longer matches the order in the implementation?
(related: https://reviews.llvm.org/D131372#inline-1263658)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131363/new/
https://reviews.llvm.org/D131363
More information about the libcxx-commits
mailing list