[libcxx-commits] [PATCH] D103371: [libc++] Avoid `result_type` and `unary/binary_function` in <valarray>

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon May 31 07:51:21 PDT 2021


ldionne accepted this revision.
ldionne added inline comments.
This revision is now accepted and ready to land.


================
Comment at: libcxx/include/functional:1006-1008
 #if _LIBCPP_STD_VER > 11
 template <class _Tp = void>
 struct _LIBCPP_TEMPLATE_VIS bit_not : unary_function<_Tp, _Tp>
----------------
Quuxplusone wrote:
> Btw, we could eliminate 9 lines of custom `__bit_not<T>` code from `<valarray>` if we made `std::bit_not<T>` here available in C++03 mode as an extension. Thoughts?
I'd rather not do that. We'll waste more than that in complexity for testing the extension.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103371



More information about the libcxx-commits mailing list