Victor Zverovich

Results 199 comments of Victor Zverovich

`vector` is not convertible to `string_view` so it's not printed as a string. Although I don't think it's a problem, I'm OK with disabling implicit conversions when printing elements of...

> `vector` is definitely convertible to `string_view` (... in C++23). Wait, what? o_O

MSVC seems broken: `vector` shouldn't be convertible to `string_view` for obvious reasons. Please report an issue to microsoft.

Yeah, it was temporarily implicit in a working draft but it's neither valid C++20 nor valid C++23.

Thanks for the suggestion. I agree that the extension API documentation is somewhat lacking at the moment. > Are there known pitfalls to doing this? Not sure about pitfalls, the...

`FMT_STRING` works with any standard version but on C++11 and broken compilers it falls back to runtime checks.

> should I use FMT_STRING or simple string literal in case of I need the best performance? There is no difference in perf between the two.

The documentation for the latest release is available here: https://fmt.dev/latest/api.html#formatting-user-defined-types

@mmolch, good idea, thanks! Added (slightly tweaked) to the current dev docs in https://fmt.dev/dev/api.html#udt.

> wouldn't you have to check at least for }} to follow the convention that doubling escapes the delimiter? No, `}` is not allowed in format specs, at least not...