Relative Content

Tag Archive for c++c++20c++-conceptsstdformat

C++ concept – allow any std::format() able type?

I have code that allows you to make a std::string format() function on any class and allow that class to be used in calls to std::format(). To do this I say that it requires a method that returns a std::string – can I change this somehow to say format can return “any type that’s std::format()able”?