Skip to content

Commit cab426c

Browse files
authored
Fixed bug with basic_string::const_reference
1 parent 99adbcc commit cab426c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/tinyutf8/tinyutf8.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ namespace tiny_utf8
707707
typedef codepoint_reference<basic_string, true> checked_reference;
708708
typedef raw_codepoint_reference<basic_string, false> raw_reference;
709709
typedef raw_codepoint_reference<basic_string, true> raw_checked_reference;
710-
typedef value_type& const_reference;
710+
typedef const value_type& const_reference;
711711
typedef std::uint_fast8_t width_type; // Data type capable of holding the number of code units in a codepoint
712712
typedef tiny_utf8::iterator<basic_string, false> iterator;
713713
typedef tiny_utf8::const_iterator<basic_string, false> const_iterator;

0 commit comments

Comments
 (0)