Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cpp] Missing return statement in string_view::copy #1750

Open
intrigus-lgtm opened this issue Mar 17, 2024 · 0 comments
Open

[cpp] Missing return statement in string_view::copy #1750

intrigus-lgtm opened this issue Mar 17, 2024 · 0 comments

Comments

@intrigus-lgtm
Copy link
Contributor

Hey, there is a missing return statement in the string_view::copy function:

size_t copy(char *dest, size_t count, size_t pos = 0) const
{
memcpy(dest, str + pos, std::min(count, len - pos));
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant