Skip to content

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

Open
horenmar wants to merge 1 commit into
jmuehlig:devfrom
horenmar:devel-string-view-for-exceptions
Open

Don't allocate string when translating error_code to msg#13
horenmar wants to merge 1 commit into
jmuehlig: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.

As the caller just appends the message into another `std::string`,
we can return `std::string_view` instead and save allocation.
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.

1 participant