Boost logo

Boost :

Subject: Re: [boost] [test] Use of snprintf
From: Ian Emmons (iemmons_at_[hidden])
Date: 2009-11-23 10:29:30

It is probably easier to emulate snprintf using Boost.Format. I'm not sure what requirements you have that cause you to want to continue using snprintf, but you may find that you can simply switch from snprintf to Boost.Format (with no emulation).

On Nov 23, 2009, at 9:04 AM, Mateusz Loskot wrote:
> Bo Schwarzstein wrote:
>> As I known, the C standard function snprintf renamed to _snprintf in MSVC,
>> maybe that caused your problem.
> snprintf is C99 function.
> Visaul C++ defines similar function _snprintf, however it is not
> equivalent 100% compatible with snprintf defined in C99.
> Nevertheless, Comeau does not define snprintf in C++ mode.
> So, in order to compile Boost.Test using Comeau,
> it needs to be emulated, possibly using <sstream> features.
> Gennadiy, would it be acceptable?
> Best regards,
> --
> Mateusz Loskot,
> _______________________________________________
> Unsubscribe & other changes:

Boost list run by bdawes at, gregod at, cpdaniel at, john at