Skip to content

Commit 149ff9e

Browse files
committed
[libcxx] update const_iterator type to use const reference in optional
1 parent ef032f1 commit 149ff9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/optional

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ public:
726726
# if _LIBCPP_STD_VER >= 26
727727

728728
using iterator = __optional_iterator<_Tp>;
729-
using const_iterator = __optional_iterator<_Tp>;
729+
using const_iterator = __optional_iterator<const _Tp&>;
730730

731731
# endif // _LIBCPP_STD_VER >= 26
732732

0 commit comments

Comments
 (0)