feat: implement destructor for OverteClient to support unique_ptr with forward-declared type

This commit is contained in:
MayaTheShy
2025-11-09 02:16:43 -05:00
parent 869ba49a54
commit 5047016225
2 changed files with 5 additions and 0 deletions

View File

@@ -121,6 +121,10 @@ static std::string generateUUID() {
return ss.str();
}
OverteClient::~OverteClient() {
// Destructor implementation (required for unique_ptr with forward-declared type)
}
bool OverteClient::login(const std::string& username, const std::string& password, const std::string& metaverseUrl) {
if (!m_auth) {
m_auth = std::make_unique<OverteAuth>();

View File

@@ -66,6 +66,7 @@ class OverteClient {
public:
explicit OverteClient(std::string domainUrl)
: m_domainUrl(std::move(domainUrl)) {}
~OverteClient(); // Required for unique_ptr with forward-declared type
// Authentication
bool login(const std::string& username, const std::string& password,