Skip to content

Modify Error Creation Functions to Friend Functions #82

Closed
@threeal

Description

@threeal

This issue suggests to modify the errors::make and the errors::format functions to be friend functions of the Error class. By implementing this, the Errors(const std::shared_ptr<const std::string>& constructor no longer required to be exposed to public, allowing the errors::make to be the only function responsible for creating an error object with the given message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions