From: Olivier Chafik Date: Sun, 2 Feb 2025 09:10:15 +0000 (+0000) Subject: Fix exotic ci env that lacks ostringstream::str (#11581) X-Git-Tag: upstream/0.0.4631~17 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=69804487e0b10f2c5c06316f0ac0eb6ada68433f;p=pkg%2Fggml%2Fsources%2Fllama.cpp Fix exotic ci env that lacks ostringstream::str (#11581) --- diff --git a/common/minja.hpp b/common/minja.hpp index bcb5a082..e77eb69d 100644 --- a/common/minja.hpp +++ b/common/minja.hpp @@ -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) {} };