Skip to content

Commit

Permalink
[libc++] Add _LIBCPP_HIDE_FROM_ABI to in_in_result
Browse files Browse the repository at this point in the history
Add `_LIBCPP_HIDE_FROM_ABI` to `in_in_result` conversion operators

Reviewed By: Quuxplusone, Mordante, #libc

Spies: libcxx-commits

Differential Revision: https://reviews.llvm.org/D117399
  • Loading branch information
philnik777 committed Jan 15, 2022
1 parent 8b2f332 commit d3e49a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libcxx/include/__algorithm/in_in_result.h
Expand Up @@ -26,13 +26,15 @@ struct in_in_result {

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

Expand Down

0 comments on commit d3e49a4

Please sign in to comment.