Skip to content

Commit

Permalink
Fixed str data() is const
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaparker committed Dec 4, 2024
1 parent 0c43f8f commit 63cfd74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/jsoncons/utility/uri.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ namespace jsoncons { namespace utility {
const std::size_t buflen = input.size();
while (rel < buflen)
{
auto span = jsoncons::span<char>(input.data()+rel, buflen - rel);
auto span = jsoncons::span<char>(&input[0]+rel, buflen - rel);
const std::size_t len = span.size();
if (len >= 3 && span[0] == '.' && span[1] == '.' && span[2] == '/')
{
Expand Down

0 comments on commit 63cfd74

Please sign in to comment.