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.
This issue suggests to modify the
errors::makeand theerrors::formatfunctions to be friend functions of theErrorclass. By implementing this, theErrors(const std::shared_ptr<const std::string>&constructor no longer required to be exposed to public, allowing theerrors::maketo be the only function responsible for creating an error object with the given message.