mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-02 09:15:04 +02:00
tinyformat: Add compile-time checking for literal format strings
Co-authored-by: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user