August 22, 2003
Hi,

template<int i, bool b>
struct A;

template<int i>
struct A<i, false>;

template<int i, bool b>
struct B
{
  A<i, b> a;
  // Error: size of A<0,0> is not known
};

template<int i, bool b>
struct A
{ };

template<int i>
struct A<i, false>
{ };

int main()
{
  A<0, true> a1;
  A<0, false> a2;
  // Error: ambiguous match of class template partial specialization 'A'

  B<0, true> b1;
  B<0, false> b2;

  return 0;
}


bye, Christof

-- 
http://cmeerw.org                                 JID: cmeerw@jabber.at mailto cmeerw at web.de