Boost logo

Boost :

From: Dmitry Ivankov (divanorama_at_[hidden])
Date: 2007-01-20 12:56:03


I think it's not a bug, for example comeau doesn't compile this:
template<int x>
class C
{
  typedef char arr[x];
};
C<0> c;

Which is almost the same: class "uses" the type that isn't valid (or there
are some words in standard about this case?)
So the problem is not that compiler does instantiate member (btw, maybe it
doesn't try to), it's that member has illegal type.


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