]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
Fix exotic ci env that lacks ostringstream::str (#11581)
authorOlivier Chafik <redacted>
Sun, 2 Feb 2025 09:10:15 +0000 (09:10 +0000)
committerGitHub <redacted>
Sun, 2 Feb 2025 09:10:15 +0000 (09:10 +0000)
common/minja.hpp

index bcb5a08244e4f8e8f34e92ba56f41d7e338df054..e77eb69d50913fbdbbebaa83058a438d3610528a 100644 (file)
@@ -824,7 +824,7 @@ public:
     LoopControlType control_type;
     LoopControlException(const std::string & message, LoopControlType control_type) : std::runtime_error(message), control_type(control_type) {}
     LoopControlException(LoopControlType control_type)
-      : std::runtime_error((std::ostringstream() << (control_type == LoopControlType::Continue ? "continue" : "break") << " outside of a loop").str()),
+      : std::runtime_error((control_type == LoopControlType::Continue ? "continue" : "break") + std::string(" outside of a loop")),
         control_type(control_type) {}
 };