Is there a way to use fmt with a spec that is computed at runtime.
Noticed that with gcc 10 this code worked fine but not with modern gcc.
#include <fmt/format.h>
const char* get_spec(bool test)
{ // image this is implemented in some other .cpp file
return test ? "->{}" : "{}<-";
}
int main() {
const char* non_constexpr = get_spec(true);
fmt::print(non_constexpr,1);
}