Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2004-07-24 05:59:54


> 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?

# ifdef BOOST_NO_STDC_NAMESPACE
namespace std {
using ::strcmp; using ::wcscmp; using ::strlen; using ::isprint;
 #if !defined( BOOST_NO_CWCHAR )
using ::wcscmp;
#endif
}
# endif

Of course you also have to make sure that you only use std::wcscmp when
BOOST_NO_CWCHAR is not defined.

John.


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