Boost logo

Boost :

Subject: [boost] [random] Compilation errors in linear_congruential.hpp because of min()/max()
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2009-11-16 17:21:36


Hi,

I'm getting compilations errors against Boost trunk from inside
linear_congruential.hpp:+89 on VS2010 because of min()/max() being used
without safeguarding them against accidental macro substitution:

    assert(_x >= min());
    assert(_x <= max());

if I replace this with

    assert(_x >= (min)());
    assert(_x <= (max)());

the compiler errors go away.

Regards Hartmut

-------------------
Meet me at BoostCon
http://boostcon.com


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