[libc++][NFC] Fix incorrect return type of `operator<=>` in `span` test code.
authorvarconst <varconsteq@gmail.com>
Sat, 24 Jun 2023 01:10:03 +0000 (18:10 -0700)
committervarconst <varconsteq@gmail.com>
Sat, 24 Jun 2023 01:10:03 +0000 (18:10 -0700)
libcxx/test/std/containers/views/views.span/span.cons/iterator_sentinel.pass.cpp

index c2d650b..4e1db3d 100644 (file)
@@ -114,7 +114,7 @@ public:
   friend difference_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>