util: Use compile-time check for FatalErrorf

This commit is contained in:
MarcoFalke
2024-07-30 14:30:16 +02:00
parent faa62c0112
commit fa7087b896
5 changed files with 15 additions and 7 deletions

View File

@@ -6,6 +6,7 @@
#define BITCOIN_UTIL_STRING_H
#include <span.h>
#include <tinyformat.h>
#include <array>
#include <cstdint>
@@ -234,4 +235,12 @@ template <typename T1, size_t PREFIX_LEN>
}
} // namespace util
namespace tinyformat {
template <typename... Args>
std::string format(util::ConstevalFormatString<sizeof...(Args)> fmt, const Args&... args)
{
return format(fmt.fmt, args...);
}
} // namespace tinyformat
#endif // BITCOIN_UTIL_STRING_H