Boost logo

Boost :

From: Joaquín Mª López Muñoz (joaquin_at_[hidden])
Date: 2005-06-20 08:45:28


Jonathan Wakely ha escrito:

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

Yes, see http://tinyurl.com/d5gc6.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo


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