mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-09-05 05:20:55 +02: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
-1
@@ -167,7 +167,7 @@ void RawSubFile::parse_fname(const std::filesystem::path &fname) {
|
||||
}
|
||||
|
||||
std::filesystem::path RawSubFile::fpath(size_t file_index) const {
|
||||
auto fname = fmt::format(m_base_name, file_index);
|
||||
auto fname = fmt::format(fmt::runtime(m_base_name), file_index);
|
||||
return m_path / fname;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user