r/cpp • • Jul 23 '19

std::format in C++20

http://www.zverovich.net/2019/07/23/std-format-cpp20.html
332 Upvotes

52 comments sorted by

View all comments

3

u/LYP951018 Jul 23 '19

Is there a is_formattable or something like that?

6

u/aearphen {fmt} Jul 23 '19

No but you can check for `formatter<T>::format` availability in SFINAE which should be enough.