www.digitalmars.com         C & C++   DMDScript  

c++.beta - Error: 'A' is not a class template

reply Christof Meerwald <cmeerw web.de> writes:
namespace ns
{
struct B
{ };
}

template<class T>
struct A
  : public ns::B
{
  template<class U>
  A(U u)
    : ns::B()
  { }
  // Error: 'A' is not a class template
};


int main()
{
  A<int> a(0);

  return 0;
}


Extracted from Boost's dynamic bitset.


bye, Christof

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

...and what have you contributed to the Net?
Jun 27 2003
parent Christof Meerwald <cmeerw web.de> writes:
On Fri, 27 Jun 2003 17:40:29 +0000 (UTC), Christof Meerwald wrote:
 namespace ns
 {
 struct B
 { };
 }

 template<class T>
 struct A
  : public ns::B
 {
   template<class U>
   A(U u)
     : ns::B()
   { }
   // Error: 'A' is not a class template
 };


 int main()
 {
   A<int> a(0);

   return 0;
 }
This one is still not fixed in the current beta (just in case you might have forgotten it...). bye, Christof -- http://cmeerw.org JID: cmeerw jabber.at mailto cmeerw at web.de ...and what have you contributed to the Net?
Oct 05 2003