Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2004-07-23 09:26:54


"John Maddock" <john_at_[hidden]> wrote in message
news:048b01c470a6$c36402d0$73e70352_at_fuji...
> > c:\boost\libs\test\build\../src/test_tools.cpp:37: `wcscmp' is already
> declared in this scope
> >
> > #if defined( __GNUC__ ) && defined( BOOST_NO_CWCHAR )
> > namespace std { using ::wcscmp; } <===================== here
> > #endif
>
> That's doubly wrong: it should check for BOOST_NO_STDC_NAMESPACE, and if
> BOOST_NO_CWCHAR is defined then wcscmp may not exist anyway.
>
> John.

Related region in a code look like this:

# ifdef BOOST_NO_STDC_NAMESPACE
namespace std { using ::strcmp; using ::wcscmp; using ::strlen; using
::isprint; }
# endif

#if defined( __GNUC__ ) && defined( BOOST_NO_CWCHAR )
namespace std { using ::wcscmp; }
#endif

Any suggestions?

Gennadiy.


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