Boost logo

Boost :

From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2001-02-04 11:34:50


Daryle Walker wrote:
> This typedef is MS VC++-specific, right? The type (wchar_t) is supposed to
> be a built-in in C++.
[...] Odd that
> you're giving this advice, since you [Ed Brey] deemed it unnecessary in the
> latest final version of "boost/config.hpp":
>
> //==========================================================================
> # ifdef BOOST_NO_STDC_NAMESPACE
> # include <cstddef>
> namespace std { using ::ptrdiff_t; using ::size_t; }
> // using ::wchar_t; removed since wchar_t is a C++ built-in type (Ed
> Brey)
> # endif
> //==========================================================================

Note that this section of boost/config.hpp deals only with making
wchar_t visible in namespace std. Since nobody will ever refer to
wchar_t as std::wchar_t (either it's a distinct built-in type or it's
a global typedef), treating wchar_t the way it is now seems to be ok.

> Isn't there a configuration macro for this already:
> BOOST_NO_INTRINSIC_WCHAR_T? Anyone that doesn't have distinctions between
> "wchar_t" and another built-in type should use that macro as a block around
> the "wchar_t" code.

Good point. I've added a hint.

Jens Maurer


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