These are chat archives for fmtlib/fmt

Mar 2018
Victor Zverovich
Mar 21 2018 13:57 UTC
Variadic templates should normally defined in header files. You could try explicitly instantiate them in a .cpp file, but this will have to be done for every combination of argument types which is problematic.
But you can use type erasure and only define small inline variadic wrappers in the header file while placing the definition of functions taking format_args and do the actual work in the .cpp files.
Here's an example:
Daniel Lim Wee Soong
Mar 21 2018 15:09 UTC
thanks a lot!