Boost logo

Boost :

Subject: Re: [boost] [test] Use of snprintf
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2009-11-23 09:04:22


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, http://mateusz.loskot.net

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk