Boost logo

Boost :

From: Joaquín Mª López Muñoz (joaquin_at_[hidden])
Date: 2007-10-18 09:17:17


Hello, the latest changes or Boost.Test on the trunk make MSVC++ 6.5
choke on just including <boost/test/included/test_exec_monitor.hpp>, with
the following:

...\boost\test\impl\execution_monitor.ipp(883) : error C2061: syntax error : identifier 'uintptr_t'
...\boost\test\impl\execution_monitor.ipp(1045) : error C2039: 'strerror' : is not a member of 'std'
[the rest deleted as it does not look interesting]

Th strerror problem is simple to fix (see attached patch). As for unitptr_t, AFAIK
this is not a standard C++ type, and <boost/cstdint.hpp> does not provide an alternative,
so I don't know what could be done without further contextual info.
Gennadiy, if you want I can locally test any changes you provide me with in MSVC++ 6.5
so as to try to remedy these problems.

Thank you,

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

Index: execution_monitor.ipp
===================================================================
--- execution_monitor.ipp (revision 40154)
+++ execution_monitor.ipp (working copy)
@@ -46,7 +46,7 @@
 #include <cstdarg> // for varargs
 
 #ifdef BOOST_NO_STDC_NAMESPACE
-namespace std { using ::strlen; using ::strncat; }
+namespace std { using ::strerror; using ::strlen; using ::strncat; }
 #endif
 
 #if defined(_WIN32) && !defined(BOOST_DISABLE_WIN32) && \


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