[libcxx-commits] [libcxx] 7d4a799 - [libc++][ranges][NFC] Fix incorrect static asserts in `almost_satisfies_types.h`

Konstantin Varlamov via libcxx-commits libcxx-commits at lists.llvm.org
Tue Mar 7 17:57:32 PST 2023


Author: Konstantin Varlamov
Date: 2023-03-07T17:57:23-08:00
New Revision: 7d4a799f4a0b27b0544dbbdd5bf57e938458e687

URL: https://github.com/llvm/llvm-project/commit/7d4a799f4a0b27b0544dbbdd5bf57e938458e687
DIFF: https://github.com/llvm/llvm-project/commit/7d4a799f4a0b27b0544dbbdd5bf57e938458e687.diff

LOG: [libc++][ranges][NFC] Fix incorrect static asserts in `almost_satisfies_types.h`

Added: 
    

Modified: 
    libcxx/test/support/almost_satisfies_types.h

Removed: 
    


################################################################################
diff  --git a/libcxx/test/support/almost_satisfies_types.h b/libcxx/test/support/almost_satisfies_types.h
index 13f28c1bfd383..4c9583b0b582e 100644
--- a/libcxx/test/support/almost_satisfies_types.h
+++ b/libcxx/test/support/almost_satisfies_types.h
@@ -58,7 +58,7 @@ using InputRangeNotIndirectlyReadable = UncheckedRange<InputIteratorNotIndirectl
 static_assert(std::input_or_output_iterator<InputIteratorNotIndirectlyReadable>);
 static_assert(!std::indirectly_readable<InputIteratorNotIndirectlyReadable>);
 static_assert(!std::input_iterator<InputIteratorNotIndirectlyReadable>);
-static_assert(!std::ranges::input_range<InputIteratorNotIndirectlyReadable>);
+static_assert(!std::ranges::input_range<InputRangeNotIndirectlyReadable>);
 
 class InputIteratorNotInputOrOutputIterator {
 public:
@@ -287,7 +287,7 @@ using OutputRangeNotInputOrOutputIterator = UncheckedRange<InputIteratorNotInput
 static_assert(!std::input_or_output_iterator<OutputIteratorNotInputOrOutputIterator>);
 static_assert(std::indirectly_writable<OutputIteratorNotInputOrOutputIterator, int>);
 static_assert(!std::output_iterator<OutputIteratorNotInputOrOutputIterator, int>);
-static_assert(!std::ranges::input_range<OutputRangeNotInputOrOutputIterator>);
+static_assert(!std::ranges::output_range<OutputRangeNotInputOrOutputIterator, int>);
 
 class OutputIteratorNotIndirectlyWritable {
 public:


        


More information about the libcxx-commits mailing list