Skip to content

Commit

Permalink
Avoid ostringstream::str which breaks openEuler build on llama.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ochafik committed Feb 1, 2025
1 parent b191fb9 commit 855edc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/minja/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 855edc4

Please sign in to comment.