[gmx-developers] fmt C++ formatting library
mark.j.abraham at gmail.com
Thu Oct 12 18:16:31 CEST 2017
It does offer some useful improvements to raw printf (or
gmx::formatString). Also of interest would be Google's StrCat (as mentioned
in the "Living at head" keynote also at that conference), which claims to
do away with formats by doing what you want with a raw list of stringable
things, including inserting white spac (hope I'm not over selling that!).
But we should know what problems such tools will make easier too. Writing
the text of error messages is easy enough already, no? Is there anything
On Thu, 12 Oct 2017 16:48 Szilárd Páll <pall.szilard at gmail.com> wrote:
> I've recently learned about the fmt formatting library  that's also
> been presented during the 2017 CppCon . It seems to be a pretty
> great variadic templates-based alternative to printf fixing most if
> not all of its flaws and at the same time allows avoiding the issue of
> mixing formatting specifiers with the printed string itself.
> The author also claims that a standard proposed is being prepared and
> first round of feedback from the standards meeting has been positive,
> so there is a good chance it might converge towards a C++ standard
> License is BSD.
> Overall, I think it looks great, and I (with my admittedly limited C++
> knowledge) saw no reason to not consider using it in GROMACS.
>  http://fmtlib.net/latest/index.html
>  https://www.youtube.com/watch?v=ptba_AqFYCM
> Gromacs Developers mailing list
> * Please search the archive at
> http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List before
> * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
> * For (un)subscribe requests visit
> or send a mail to gmx-developers-request at gromacs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gromacs.org_gmx-developers