This C++ code using fmt
library runs as expected:
#include <fmt/format.h>
#include <fmt/ranges.h>
#include <vector>
int main() {
std::vector<int> v{4, 2, 7};
fmt::println("{}", v);
}
My attempt to use the standard print
header with g++-14:
#include <print>
#include <vector>
void test() {
std::vector<int> v{4, 2, 7};
std::println("{}", v);
}
fails to compile with a humongous template barf. Is there a way to fix it?