4 ms·
{fmt} used to support pre-C++11 compilers that didn't have variadic templates. It was a pain to emulate variadics but it wasn't impossible.
by vitaut 2y ago
{fmt} used to support pre-C++11 compilers that didn't have variadic templates. It was a pain to emulate variadics but it wasn't impossible.
- spacechild1 2y agoWow, I don't know that! I would be curious to know how they did it.
- spacechild1 2y agoOh, I didn't realize you're the author! Thank you so much for fmt/std::format - it's truely a godsend!
- vitaut 2y agoGlad you like it =)
- vitaut 2y agoIt was emulated using horrible macros: https://github.com/fmtlib/fmt/blob/8f5e07656e25ec64ec7c843f0529107df8588671/fmt/format.h#L3752-L3780 https://github.com/fmtlib/fmt/blob/8f5e07656e25ec64ec7c843f0.... IIRC some early versions of `std::tuple` did something similar.