c++.beta - ambiguous match of class template partial specialization
- Christof Meerwald (30/30) Aug 22 2003 Hi,
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
Aug 22 2003








Christof Meerwald <cmeerw web.de>