Skip to content

Don't allocate string when translating error_code to msg#13

Merged
jmuehlig merged 2 commits into
jmuehlig:v1.0-devfrom
horenmar:devel-string-view-for-exceptions
Jun 23, 2026
Merged

Don't allocate string when translating error_code to msg#13
jmuehlig merged 2 commits into
jmuehlig:v1.0-devfrom
horenmar:devel-string-view-for-exceptions

Conversation

@horenmar

Copy link
Copy Markdown

As the caller just appends the message into another std::string, we can return std::string_view instead and save allocation.

jmuehlig and others added 2 commits June 15, 2026 08:23
As the caller just appends the message into another `std::string`,
we can return `std::string_view` instead and save allocation.
@jmuehlig jmuehlig changed the base branch from dev to v1.0-dev June 23, 2026 06:49
@jmuehlig jmuehlig merged commit 9805a43 into jmuehlig:v1.0-dev Jun 23, 2026
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

Successfully merging this pull request may close these issues.

2 participants