Skip to content

Commit be42cc3

Browse files
Merge pull request #33 from lucaromagnoli/fix/windows-msvc-unique-ptr-void
fix: replace std::unique_ptr<void> with raw pointer for MSVC compatib…
2 parents 82ec8d9 + 9ae8088 commit be42cc3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/openai/OpenAIHttpClient.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ class OpenAIHttpClient::HttpClientImpl {
100100
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
101101
std::unique_ptr<httplib::SSLClient> client_;
102102
#else
103-
std::unique_ptr<void> client_; // Placeholder when SSL not available
103+
void* client_; // Placeholder when SSL not available (raw pointer to avoid unique_ptr<void>
104+
// issues)
104105
#endif
105106
std::string hostname_;
106107
std::string basePath_;

0 commit comments

Comments
 (0)