[PATCH] D45805: [libcxx] Remove redundant specializations in type_traits.

Louis Dionne via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 16 09:01:02 PDT 2018


ldionne added a subscriber: mclow.lists.
ldionne added inline comments.


================
Comment at: include/type_traits:595
-template<class _B0, class _B1>
-struct __and_<_B0, _B1> : conditional<_B0::value, _B1, _B0>::type {};
-
----------------
It is not impossible that this was a compile-time optimization for the (probably very common) case where there's only 2 arguments. I'd like to have Marshall's input on that, since he seems to have written that code. Otherwise, LGTM. Ping @mclow.lists 


Repository:
  rCXX libc++

https://reviews.llvm.org/D45805





More information about the cfe-commits mailing list