Created
July 10, 2016 15:26
-
-
Save asutton/c381a942e02c3f4c8335cfc25d57bd00 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/include/stl2/detail/iterator/basic_iterator.hpp b/include/stl2/detail/iterator/basic_iterator.hpp | |
index 9f32dfd..113fc37 100644 | |
--- a/include/stl2/detail/iterator/basic_iterator.hpp | |
+++ b/include/stl2/detail/iterator/basic_iterator.hpp | |
@@ -687,6 +687,11 @@ STL2_OPEN_NAMESPACE { | |
{ | |
return *this; | |
} | |
+ constexpr const basic_iterator& operator*() const noexcept | |
+ requires !cursor::Next<C>() | |
+ { | |
+ return *this; | |
+ } | |
// operator->: "Manual" override | |
constexpr decltype(auto) operator->() const |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment