From 39d5082da591ff4419400b7abeacdc4f890bf1d3 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sun, 9 Nov 2025 02:16:43 -0500 Subject: [PATCH] feat: implement destructor for OverteClient to support unique_ptr with forward-declared type --- src/OverteClient.cpp | 4 ++++ src/OverteClient.hpp | 1 + 2 files changed, 5 insertions(+) diff --git a/src/OverteClient.cpp b/src/OverteClient.cpp index 4f41b96..f256ec1 100644 --- a/src/OverteClient.cpp +++ b/src/OverteClient.cpp @@ -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(); diff --git a/src/OverteClient.hpp b/src/OverteClient.hpp index dcf1220..59def3a 100644 --- a/src/OverteClient.hpp +++ b/src/OverteClient.hpp @@ -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,