OpenImageIO/oiio — pull request #324 by c42f (2012-04-17 14:34:19+00:00)
Title: Use tinyformat for typesafe printf-like formatting

Hi all, I finally made time to integrate tinyformat into OIIO to give us typesafe formatting.

All varargs error() functions are replaced here by an equivalent function using tfm::format to do the formatting instead. An effort has been made to keep implementation details out of the headers by
introducing private non-formatting functions like ImageInput::append_error() to be called by error().

tfm::format has been brought into the Strutil namespace to replace Strutil::format(). It's not entirely clear to me that this is the right thing (rather than just changing things to use tfm::format directly) but it is the simplest approach. Opinions welcome.

Strutil::vformat() remains as-is, because it is useful in certain circumstances where external libraries pass a va_list.

The error formatters inside ErrorHandler have not been changed yet, since it's not quite clear what to replace the va_list functions like ErrorHandler::vError() with, though I don't see that we're actually using ErrorHandler for anything!