diff --git a/source/third_party/cppformat/format.h b/source/third_party/cppformat/format.h index 5a139acc48..5e9fa96627 100644 --- a/source/third_party/cppformat/format.h +++ b/source/third_party/cppformat/format.h @@ -706,12 +706,17 @@ public: MakeArg(void *value) { type = POINTER; pointer_value = value; } MakeArg(const void *value) { type = POINTER; pointer_value = value; } +#if 0 + // WFG: Removed this because otherwise you can pass a CStr8 or an enum etc + // into fmt::sprintf, and it will be interpreted as a CUSTOM type and then + // will throw an exception at runtime, which is terrible behaviour. template MakeArg(const T &value) { type = CUSTOM; custom.value = &value; custom.format = &format_custom_arg; } +#endif }; #define FMT_DISPATCH(call) static_cast(this)->call