DEV Community

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

Collapse
 
baenencalin profile image
Calin Baenen • Edited

Since C++20, you have std::format() en.cppreference.com/w/cpp/utility/...

I tried. I don't.
G++ (11.1.0 (GCC)) on Arch Linux (x86_64) says the format header does not exist.

I'm not aware of how to install the format header.

Thread Thread
 
pgradot profile image
Pierre Gradot

en.cppreference.com/w/cpp/compiler... : it seems that no compiler has support for at the moment...

std::format() is just a function that you have in the fmt library. I believe everybody keeps using it ^^