[libcxx-commits] [PATCH] D117399: [libc++] Add _LIBCPP_HIDE_FROM_ABI to in_in_result

Nikolas Klauser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jan 15 08:55:20 PST 2022


philnik created this revision.
philnik added reviewers: Quuxplusone, Mordante, ldionne.
philnik requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Add `_LIBCPP_HIDE_FROM_ABI` to `in_in_result` conversion operators


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D117399

Files:
  libcxx/include/__algorithm/in_in_result.h


Index: libcxx/include/__algorithm/in_in_result.h
===================================================================
--- libcxx/include/__algorithm/in_in_result.h
+++ libcxx/include/__algorithm/in_in_result.h
@@ -26,13 +26,15 @@
 
   template <class _II1, class _II2>
     requires convertible_to<const _I1&, _II1> && convertible_to<const _I2&, _II2>
-  constexpr operator in_in_result<_II1, _II2>() const & {
+   _LIBCPP_HIDE_FROM_ABI constexpr
+   operator in_in_result<_II1, _II2>() const & {
     return {in1, in2};
   }
 
   template <class _II1, class _II2>
     requires convertible_to<_I1, _II1> && convertible_to<_I2, _II2>
-    constexpr operator in_in_result<_II1, _II2>() && { return {_VSTD::move(in1), _VSTD::move(in2)}; }
+  _LIBCPP_HIDE_FROM_ABI constexpr
+  operator in_in_result<_II1, _II2>() && { return {_VSTD::move(in1), _VSTD::move(in2)}; }
 };
 } // namespace ranges
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117399.400294.patch
Type: text/x-patch
Size: 891 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220115/f7313f8f/attachment.bin>


More information about the libcxx-commits mailing list