Boost logo

Boost :

From: Martin Wille (mw8329_at_[hidden])
Date: 2005-03-01 15:30:22

Jonathan Wakely wrote:

> This is the minimum that fails:
> template<typename T, T N> struct int_ {
> static const T value = N;
> typedef int_< T, static_cast<T>(value+1) > next;
> };
> GCC compiles this if you use "n" in the integral constant expression,
> rather than "value"
> typedef int_< T, static_cast<T>(N+1) > next;
> I'll file a GCC PR

Giovanni has reported the bug already, see

It has been fixed recently.


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