Skip to content

Commit

Permalink
[libc++][ranges] Exports operator|. (#90071)
Browse files Browse the repository at this point in the history
This was omitted in c108653 and not detected by the CI since
clang-tidy is not running. This fixes the exports.

Fixes: #89898
  • Loading branch information
mordante authored Apr 26, 2024
1 parent 37a92f9 commit d6c4ebb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions libcxx/modules/std/ranges.inc
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,17 @@ export namespace std {
#if _LIBCPP_STD_VER >= 23
// [range.adaptor.object], range adaptor objects
using std::ranges::range_adaptor_closure;
// Note: This declaration not in the synopsis or explicitly in the wording.
// However it is needed for the range adaptors.
// [range.adaptor.object]/3
// The template parameter D for range_adaptor_closure may be an
// incomplete type. If an expression of type cv D is used as an operand
// to the | operator, D shall be complete and model
// derived_from<range_adaptor_closure<D>>. The behavior of an expression
// involving an object of type cv D as an operand to the | operator is
// undefined if overload resolution selects a program-defined operator|
// function.
using std::ranges::operator|;
#endif

// [range.all], all view
Expand Down

0 comments on commit d6c4ebb

Please sign in to comment.