Boost logo

Boost :

From: John Maddock (jm_at_[hidden])
Date: 2002-10-18 05:43:51


> > There are also a lot of problems with Boost Test framework since E2316
> > "'__strcmp__' is not a member of 'std'" (I suppose there is a '#define
> > strcmp __strcmp__' somewhere).
> >
>
> The following inserted into the test .cpp files works around the problem
for BCC 5.6 with update 2 applied (0x561).
> It is a little ugly though....
>
> #if defined(__BORLANDC__) && __BORLANDC__ >= 0x560 && !defined(_DEBUG)
> using namespace std;
> #define std
> #endif

It would be better to undef the offending symbols (that's what regex does),
however maybe a boost-wide fix would be more appropriate, maybe in the
config, maybe as a <boost/cstring.hpp> (rather like <boost/limits.hpp>). We
can transform macros into inlines that way too...

John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/index.htm


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