Skip to content

Commit c2e0664

Browse files
committed
Fix modules issues
1 parent 3982902 commit c2e0664

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

libcxx/include/module.modulemap

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -535,11 +535,17 @@ module std [system] {
535535
}
536536
module ranges_fill_n { header "__algorithm/ranges_fill_n.h" }
537537
module ranges_fill { header "__algorithm/ranges_fill.h" }
538-
module ranges_find_end { header "__algorithm/ranges_find_end.h" }
538+
module ranges_find_end {
539+
header "__algorithm/ranges_find_end.h"
540+
export std.ranges.subrange // return type
541+
}
539542
module ranges_find_first_of { header "__algorithm/ranges_find_first_of.h" }
540543
module ranges_find_if_not { header "__algorithm/ranges_find_if_not.h" }
541544
module ranges_find_if { header "__algorithm/ranges_find_if.h" }
542-
module ranges_find_last { header "__algorithm/ranges_find_last.h" }
545+
module ranges_find_last {
546+
header "__algorithm/ranges_find_last.h"
547+
export std.ranges.subrange // return type
548+
}
543549
module ranges_find { header "__algorithm/ranges_find.h" }
544550
module ranges_fold { header "__algorithm/ranges_fold.h" }
545551
module ranges_for_each_n {
@@ -728,8 +734,14 @@ module std [system] {
728734
}
729735
module ranges_rotate { header "__algorithm/ranges_rotate.h" }
730736
module ranges_sample { header "__algorithm/ranges_sample.h" }
731-
module ranges_search_n { header "__algorithm/ranges_search_n.h" }
732-
module ranges_search { header "__algorithm/ranges_search.h" }
737+
module ranges_search_n {
738+
header "__algorithm/ranges_search_n.h"
739+
export std.ranges.subrange // return type
740+
}
741+
module ranges_search {
742+
header "__algorithm/ranges_search.h"
743+
export std.ranges.subrange // return type
744+
}
733745
module ranges_set_difference {
734746
header "__algorithm/ranges_set_difference.h"
735747
export std.functional.ranges_operations

libcxx/test/benchmarks/algorithms/nonmodifying/fold.bench.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <cassert>
1313
#include <cstddef>
1414
#include <deque>
15+
#include <iterator>
1516
#include <limits>
1617
#include <list>
1718
#include <string>

libcxx/test/benchmarks/algorithms/nonmodifying/is_permutation.bench.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <algorithm>
1212
#include <cstddef>
1313
#include <deque>
14+
#include <iterator>
1415
#include <list>
1516
#include <string>
1617
#include <vector>

0 commit comments

Comments
 (0)