Skip to content

Commit 6980448

Browse files
authored
Fix exotic ci env that lacks ostringstream::str (#11581)
1 parent ff22770 commit 6980448

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/minja.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ class LoopControlException : public std::runtime_error {
824824
LoopControlType control_type;
825825
LoopControlException(const std::string & message, LoopControlType control_type) : std::runtime_error(message), control_type(control_type) {}
826826
LoopControlException(LoopControlType control_type)
827-
: std::runtime_error((std::ostringstream() << (control_type == LoopControlType::Continue ? "continue" : "break") << " outside of a loop").str()),
827+
: std::runtime_error((control_type == LoopControlType::Continue ? "continue" : "break") + std::string(" outside of a loop")),
828828
control_type(control_type) {}
829829
};
830830

0 commit comments

Comments
 (0)