Boost logo

Boost :

From: Jonathan Wakely (cow_at_[hidden])
Date: 2005-06-20 07:35:00


On Mon, Jun 20, 2005 at 01:50:08PM +0200, Martin Wille wrote:

> Jonathan Wakely wrote:
> > On Mon, Jun 20, 2005 at 08:58:12AM +0200, Joaqu?n M? L?pez Mu?oz wrote:
> [...]
> >>Google tells us that GCC 2.95 does not provide char_traits<>::eof(),
> >>hence the problem.
> >>I can confirm the attached patch solves the issue. OK to commit?
> >>A better way to macro-detect the offending platform?
> >
> >
> > I think the version check should be for any GCC < 3
>
>
> The problem doesn't exist if stlport is used with gcc 2.95. So, checking
> for the compiler version seems wrong.

Checking _just_ the compiler version would be wrong, but checking for
BOOST_NO_STD_WSTRING as well should mean it catches GCC 2.x with
libstdc++-v2 but not GCC 2.x with STLport or libstdc++-v3 snapshots.

I haven't tested it though. Does GCC 2.x with STLport support
std::wstring (and therefore leave BOOST_NO_STD_WSTRING undefined) ?

jon

-- 
"The ability to quote is a serviceable substitute for wit."
	- W. Sommerset Maugham

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