mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-11-10 17:53:53 +01:00
Fixed usage of fmt::format and fmt::print for C++20 (#323)
With C++20 `fmt::print(s)` expects a compile time format string and otherwise fails complaining about consteval. To get runtime formatting use `fmt::print(fmt::runtime(s))`
This commit is contained in:
1 parent
17d04083a7
commit
2041c7310a
5 files changed
+6
-5
No files matched your search
+1
-1
@@ -7,7 +7,7 @@
|
||||
namespace aare {
|
||||
|
||||
void assert_failed(const std::string &msg) {
|
||||
fmt::print(msg);
|
||||
fmt::print("{}", msg);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user