2
0
mirror of https://github.com/wolfpld/tracy synced 2026-01-19 04:52:09 +00:00

Fix operator std::string in ollama-hpp.

This commit is contained in:
Bartosz Taudul
2025-05-19 00:20:54 +02:00
parent 928ad3dd72
commit bc126833e2
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
diff --git i/include/ollama.hpp w/include/ollama.hpp
index eaa7a51..0f343b8 100644
--- i/include/ollama.hpp
+++ w/include/ollama.hpp
@@ -347,10 +347,7 @@ namespace ollama
return type;
}
- //operator std::string() const { return this->as_simple_string(); }
- operator std::__cxx11::basic_string<char>() const { return this->as_simple_string(); }
- //const operator std::string() const { return this->as_simple_string(); }
-
+ operator std::string() const { return this->as_simple_string(); }
private:

View File

@@ -244,6 +244,8 @@ CPMAddPackage(
GITHUB_REPOSITORY jmont-dev/ollama-hpp
VERSION 0.9.5
DOWNLOAD_ONLY TRUE
PATCHES
"${CMAKE_CURRENT_LIST_DIR}/ollama-hpp-string.patch"
)
# base64