Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-02-25 12:43:10

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
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) && \
    using std::rand;

Should I commit?


Boost list run by bdawes at, gregod at, cpdaniel at, john at