[libcxx-commits] [libcxx] d9688b4 - [libc++][NFC] Fix incorrect return type of `operator<=>` in `span` test code.

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jun 23 18:11:26 PDT 2023


Author: varconst
Date: 2023-06-23T18:10:03-07:00
New Revision: d9688b4635ad566be6e06ed09dca906f7527cc17

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

LOG: [libc++][NFC] Fix incorrect return type of `operator<=>` in `span` test code.

Added: 
    

Modified: 
    libcxx/test/std/containers/views/views.span/span.cons/iterator_sentinel.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/containers/views/views.span/span.cons/iterator_sentinel.pass.cpp b/libcxx/test/std/containers/views/views.span/span.cons/iterator_sentinel.pass.cpp
index c2d650bfaffa5..4e1db3df5b83b 100644
--- a/libcxx/test/std/containers/views/views.span/span.cons/iterator_sentinel.pass.cpp
+++ b/libcxx/test/std/containers/views/views.span/span.cons/iterator_sentinel.pass.cpp
@@ -114,7 +114,7 @@ class throw_operator_minus {
   friend 
diff erence_type operator-(throw_operator_minus, throw_operator_minus) { throw 42; };
 
   friend bool operator==(const throw_operator_minus& x, const throw_operator_minus& y) { return x.it_ == y.it_; }
-  friend bool operator<=>(const throw_operator_minus& x, const throw_operator_minus& y) { return x.it_ <=> y.it_; }
+  friend auto operator<=>(const throw_operator_minus& x, const throw_operator_minus& y) { return x.it_ <=> y.it_; }
 };
 
 template <class It>


        


More information about the libcxx-commits mailing list