Я просто прочитал о библиотеке форматирования FastFormat С++ i/o, и кажется слишком хорошим, чтобы быть правдой: быстрее, чем printf, typeafe, и с тем, что я считаю приятным интерфейсом:
// prints: "This formats the remaining arguments based on their order - in this case we put 1 before zero, followed by 1 again"
fastformat::fmt(std::cout, "This formats the remaining arguments based on their order - in this case we put {1} before {0}, followed by {1} again", "zero", 1);
// prints: "This writes each argument in the order, so first zero followed by 1"
fastformat::write(std::cout, "This writes each argument in the order, so first ", "zero", " followed by ", 1);
Это выглядит слишком хорошо, чтобы быть правдой. Есть ли улов? Были ли у вас хорошие, плохие или безразличные переживания?