Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-01-31 13:52:08


David Abrahams <dave_at_[hidden]> writes:

> I think the fix is much easier than either of those:
>
> typedef integral_c<T, static_cast<T>(value + 1)> next;
> typedef integral_c<T, static_cast<T>(value - 1)> prior;

Could you try that and see if it works?

Thanks,
Dave

-- 
                       David Abrahams
   dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

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