Skip to content

Commit 12b3271

Browse files
committed
fix(node-orchestra): Fix consteval error in RTError
Signed-off-by: Steffen Vogel <[email protected]>
1 parent e057249 commit 12b3271

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

include/villas/nodes/opal_orchestra/error.hpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ class RTError : public RuntimeError {
2424

2525
public:
2626
template <typename... Args>
27-
RTError(RTAPIReturn_t rc, const std::string &what = std::string(),
28-
Args &&...args)
29-
: RuntimeError(fmt::format("{}: {}",
30-
fmt::format(what, std::forward<Args>(args)...),
31-
RTGetErrorMessage(rc))),
27+
RTError(RTAPIReturn_t rc, fmt::format_string<Args...> fmt, Args &&...args)
28+
: RuntimeError("{}: {}", fmt::format(fmt, std::forward<Args>(args)...),
29+
RTGetErrorMessage(rc)),
3230
returnCode(rc) {}
3331

3432
RTAPIReturn_t returnCode;

0 commit comments

Comments
 (0)