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:
16
cmake/ollama-hpp-string.patch
Normal file
16
cmake/ollama-hpp-string.patch
Normal 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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user