Boost logo

Boost :

From: JOAQUIN LOPEZ MU?Z (joaquin_at_[hidden])
Date: 2007-11-13 17:17:58


The trunk version of boost/test/impl/debug.ipp uses
std::memcpy without having included an appropriate header,
as shown in http://tinyurl.com/yt3hv8 :

[...]
In file included from ../boost/test/included/unit_test.hpp:19,
                 from ../libs/test/test/online_test.cpp:17:
../boost/test/impl/debug.ipp: In function ???char*
boost::debug::<unnamed>
::copy_arg(boost::debug::<unnamed>::mbuffer&,
boost::unit_test::const_string)???:
../boost/test/impl/debug.ipp:338: error: ???memcpy??? is not a member
of ???std???
[...]

Curiously enough it is only GCC 4.3.0 that catches the
problem, probably because std::memcpy is implicitly included
by some header or another in all other platforms.

The attached patch should solve the problem. OK to commit?

Thank you,

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo




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