We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff22770 commit 6980448Copy full SHA for 6980448
common/minja.hpp
@@ -824,7 +824,7 @@ class LoopControlException : public std::runtime_error {
824
LoopControlType control_type;
825
LoopControlException(const std::string & message, LoopControlType control_type) : std::runtime_error(message), control_type(control_type) {}
826
LoopControlException(LoopControlType control_type)
827
- : 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")),
828
control_type(control_type) {}
829
};
830
0 commit comments