DEV Community

Discussion on: How do I use variable-arguments (varargs) in C++ (effectively)?

 
baenencalin profile image
Calin Baenen

I apologize for criticizing the way you ask questions, but it's important. Knowing how to ask the right questions is an important tool for a developer.

Eh, criticism isn't something I treat with negativity, thanks for pointing out the flaw I only partially recognize.
Sorry for the "question hopping".

I'd say I got a bit carried away with trying to find a "best" way of string-formatting, and as of C++20, I found it std::format -- That's essentially everything I want and all I need.

Thread Thread
 
baenencalin profile image
Calin Baenen

I'd say I got a bit carried away with trying to find a "best" way of string-formatting, and as of C++20, I found it std::format -- That's essentially everything I want and all I need.

I tried looking for how to format strings in C++ before, but this never really came up to surface (I use DuckDuckGo). All I get is stringstream and snprintf/printf solutions.