<p dir="ltr">Hi,</p>
<p dir="ltr">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!).</p>
<p dir="ltr">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?</p>
<p dir="ltr">Mark</p>
<br><div class="gmail_quote"><div dir="ltr">On Thu, 12 Oct 2017 16:48 Szilárd Páll <<a href="mailto:pall.szilard@gmail.com">pall.szilard@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I've recently learned about the fmt formatting library [1] that's also<br>
been presented during the 2017 CppCon [2]. It seems to be a pretty<br>
great variadic templates-based alternative to printf fixing most if<br>
not all of its flaws and at the same time allows avoiding the issue of<br>
mixing formatting specifiers with the printed string itself.<br>
<br>
The author also claims that a standard proposed is being prepared and<br>
first round of feedback from the standards meeting has been positive,<br>
so there is a good chance it might converge towards a C++ standard<br>
inclusion.<br>
<br>
License is BSD.<br>
<br>
Overall, I think it looks great, and I (with my admittedly limited C++<br>
knowledge) saw no reason to not consider using it in GROMACS.<br>
<br>
Thoughts?<br>
<br>
Cheers,<br>
--<br>
Szilárd<br>
<br>
[1] <a href="http://fmtlib.net/latest/index.html" rel="noreferrer" target="_blank">http://fmtlib.net/latest/index.html</a><br>
[2] <a href="https://www.youtube.com/watch?v=ptba_AqFYCM" rel="noreferrer" target="_blank">https://www.youtube.com/watch?v=ptba_AqFYCM</a><br>
--<br>
Gromacs Developers mailing list<br>
<br>
* Please search the archive at <a href="http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List" rel="noreferrer" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List</a> before posting!<br>
<br>
* Can't post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" rel="noreferrer" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>
<br>
* For (un)subscribe requests visit<br>
<a href="https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers" rel="noreferrer" target="_blank">https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers</a> or send a mail to <a href="mailto:gmx-developers-request@gromacs.org" target="_blank">gmx-developers-request@gromacs.org</a>.</blockquote></div>