Boost logo

Boost :

From: Steve M. Robbins (steven.robbins_at_[hidden])
Date: 2002-09-16 13:00:49


Hi,

There's a bit of code in there that reads

    // have to #ifdef here: some compilers don't like the 'N + 1' form (MSVC),
    // while some other don't like 'value + 1' (Borland)
#if !defined(__BORLANDC__)
    typedef integral_c<T, value + 1> next;
    typedef integral_c<T, value - 1> prior;
#else
    typedef integral_c<T, N + 1> next;
    typedef integral_c<T, N - 1> prior;
#endif

The MIPSpro compiler (version 7.30, using -LANG:std) doesn't like either form.
Is there a third way?

-S


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