I'm glad to see more code using C++, and I am lobbying for the
addition of the SafeFormat functions from the Loki Library.  The
library was started by Andrei Alexandrescu, and its home page is here:

  http://loki-lib.sourceforge.net/

It is under the MIT License.

The SafeFormat functions are: FPrintf, Printf, and SPrintf, mimicking
C's fprintf, printf, and sprintf, but with better type safety.
Another advantage is that, for FPrintf, the output can be to either C
file pointers or C++ ostreams, which helps immensely when porting old
C code to streams incrementally.

Only three files are needed from the library set and they are:

  LokiExport.h
  SafeFormat.h
  SafeFormat.cpp

Of course there are other handy things in the library as well, so
enjoy perusing them.

Best,

-Tom

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to