Skip to content

Commit e38af24

Browse files
committed
Make option_names_iteratort::reference const
As the return type of the dereference operator is const, this commit makes the types consistent.
1 parent d1c3cb9 commit e38af24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/cmdline.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ class cmdlinet
111111
using iterator_category = std::forward_iterator_tag;
112112
using value_type = std::string;
113113
using difference_type = std::ptrdiff_t;
114-
using pointer = std::string *;
115-
using reference = std::string &;
114+
using pointer = const std::string *;
115+
using reference = const std::string &;
116116

117117
option_names_iteratort() = default;
118118
explicit option_names_iteratort(

0 commit comments

Comments
 (0)