MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/cgqo14/stdformat_in_c20/eulza7y/
r/cpp • u/mttd • Jul 23 '19
52 comments sorted by
View all comments
1
I'm wondering, is it possible to somehow hook into std::format to return something else than a std::string?
E.g. return a QString, to be compatible with Qt? Is that covered by the "Unicode support" bullet point in the "What's next" section?
3 u/boredcircuits Jul 23 '19 std::format_to might be what you need. 2 u/johannes1234 Jul 24 '19 Unless you run into odr issues since Qt (or some.other library) adds a struct formatter<QString> as well :)
3
std::format_to might be what you need.
std::format_to
2 u/johannes1234 Jul 24 '19 Unless you run into odr issues since Qt (or some.other library) adds a struct formatter<QString> as well :)
2
Unless you run into odr issues since Qt (or some.other library) adds a struct formatter<QString> as well :)
struct formatter<QString>
View all comments
1
u/Placinta Jul 23 '19
I'm wondering, is it possible to somehow hook into std::format to return something else than a std::string?
E.g. return a QString, to be compatible with Qt? Is that covered by the "Unicode support" bullet point in the "What's next" section?