Util: Switch from format() to struct Formatter

This commit is contained in:
Riyyi
2022-08-03 01:02:33 +02:00
parent eb25e98f79
commit f3344a0fb9
8 changed files with 298 additions and 56 deletions
+2 -1
View File
@@ -28,7 +28,8 @@ struct Parameter {
template<typename T>
void formatParameterValue(Builder& builder, const void* value)
{
_format(builder, *static_cast<const T*>(value));
Formatter<T> formatter;
formatter.format(builder, *static_cast<const T*>(value));
}
// Type erasure improves both compile time and binary size significantly