Skip to content

Return Message as String View #93

Closed
@threeal

Description

@threeal

This issue recommends to return the Error::message method as a std::string_view instead of as a std::string. Returning as a std::string_view prevents the Error::message from allocating another memory to store the string, this change especially is useful if an error contains a large message.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions