ImHex/lib/libimhex/include/hex/helpers/fmt.hpp

14 lines
265 B
C++
Raw Normal View History

2021-08-29 20:15:18 +00:00
#pragma once
#include <string_view>
#include <fmt/format.h>
#include <fmt/chrono.h>
namespace hex {
template<typename... Args>
2023-11-10 19:47:08 +00:00
std::string format(std::string_view format, Args... args) {
2021-08-29 20:15:18 +00:00
return fmt::format(fmt::runtime(format), args...);
}
}