[gmx-developers] fmt C++ formatting library
Mark Abraham
mark.j.abraham at gmail.com
Thu Oct 12 18:16:31 CEST 2017
Hi,
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
else relevant?
Mark
On Thu, 12 Oct 2017 16:48 Szilárd Páll <pall.szilard at gmail.com> wrote:
> Hi,
>
> I've recently learned about the fmt formatting library [1] that's also
> been presented during the 2017 CppCon [2]. 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
> inclusion.
>
> 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.
>
> Thoughts?
>
> Cheers,
> --
> Szilárd
>
> [1] http://fmtlib.net/latest/index.html
> [2] 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
> posting!
>
> * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
>
> * For (un)subscribe requests visit
> https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers
> or send a mail to gmx-developers-request at gromacs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20171012/e49403f2/attachment.html>
More information about the gromacs.org_gmx-developers
mailing list