Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-02-25 13:40:28


"Jonathan Turkanis" <technews_at_[hidden]> wrote in message
news:cvno4v$ibi$1_at_sea.gmane.org...
> Gennadiy Rozental wrote:
> > Do you have any idea why Borland fail to find rand()?
>
> Yes. For some reason I couldn't figure it out before. The implementation
of
> random shuffle makes an unqualified call to rand, but rand is actually in

Doesn't random shuffle is also in namespace std? Why would it fail to
resolve symbol from the same namespace?

> namespace std. The iostream tests compile correctly if I add the following
to
> unit_test_suite.ipp, after the final include directive:
> #if BOOST_WORKAROUND(__BORLANDC__, < 0x600) && \
> BOOST_WORKAROUND(_STLPORT_VERSION, <= 0x450) \
> /**/
> using std::rand;
> #endif

Does above mean that the same isuue is with STLPort before version 4.5.0?

> Should I commit?

Ok.

> Jonathan
>

Gennadiy.


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