tinyformat: Add compile-time checking for literal format strings

Co-authored-by: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>
This commit is contained in:
Ryan Ofsky
2024-10-28 19:13:46 -04:00
parent 184f34f2d0
commit fe39acf88f
2 changed files with 17 additions and 22 deletions

View File

@@ -6,7 +6,6 @@
#define BITCOIN_UTIL_STRING_H
#include <span.h>
#include <tinyformat.h>
#include <array>
#include <cstdint>
@@ -247,12 +246,4 @@ 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