Boost logo

Boost :

Subject: [boost] [test] Use of snprintf
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2009-11-21 17:16:42


Hi,

I'm testing Boost with Comeau C/C++ frontent which,
as far as I found, does not support mixing C++ and C99 modes.
So, compiling Boost.Test library fails because ::snprintf
can not be found [1].

I could not find any guidelines regarding use of elements of C99 in
Boost libraries (are there any?). Scanning Boost libraries for
snprintf shows that it's not widely used, but only in 3 files:

boost/test/impl/debug.ipp
boost/test/impl/execution_monitor.ipp
libs/format/benchmark/bench_format.cpp

Would it make sense to remove use of snprintf?

[1] https://svn.boost.org/trac/boost/ticket/3558

Best regards,

-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org

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