
23 Nov
2009
23 Nov
'09
3:55 p.m.
Mateusz Loskot <mateusz <at> loskot.net> writes:
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.
Seems to be working fine for our purposes.
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?
I'd rather use wrapper around sprintf, which drops n. Gennadiy