mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-09-05 06:40:56 +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:
@@ -50,8 +50,8 @@ std::filesystem::path RawFileNameComponents::data_fname(size_t mod_id,
|
||||
if (m_old_scheme) {
|
||||
fmt = "{}_d{}_f{:012}_{}.raw";
|
||||
}
|
||||
return m_base_path /
|
||||
fmt::format(fmt, m_base_name, mod_id, file_id, m_file_index);
|
||||
return m_base_path / fmt::format(fmt::runtime(fmt), m_base_name, mod_id,
|
||||
file_id, m_file_index);
|
||||
}
|
||||
|
||||
void RawFileNameComponents::set_old_scheme(bool old_scheme) {
|
||||
|
||||
Reference in New Issue
Block a user