Skip to content

Commit

Permalink
Fix exotic ci env that lacks ostringstream::str (ggerganov#11581)
Browse files Browse the repository at this point in the history
  • Loading branch information
ochafik authored Feb 2, 2025
1 parent ff22770 commit 6980448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/minja.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ class LoopControlException : public std::runtime_error {
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) {}
};

Expand Down

0 comments on commit 6980448

Please sign in to comment.