This issue suggests changing the error::Error struct to store the error message as a shared constant string (std::shared_ptr<const std::string>) instead of a constant string (const std::string). With this modification, it is also recommended to access the message using a method that checks if the shared constant string is null or not, instead of exposing the shared constant string itself.