help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

static menber var in nested template


From: Ichthyostega
Subject: static menber var in nested template
Date: Fri, 26 Sep 2008 01:45:05 +0200
User-agent: IceDove 1.5.0.14eol (X11/20080724)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi all,

can anyone explain why the following doesn't compile and how to fix it?

tried with g++ 4.1.2 and g++ 4.3.1

//////////////////////////////////

template<typename T>
  struct A
    {
      template<typename U>
      struct B
        {
           static int aa;
        };
    };

template<typename T, typename U>
int A<T>::template B<U>::aa;  // error: too few template-parameter-lists




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI3B9OZbZrB6HelLIRAsWMAJ9VJRmuDyWMHJ7MmdWnIscbJPfILQCfTUrW
4cCQKAEEe5VuY5O0/HTrYz0=
=2cgb
-----END PGP SIGNATURE-----


reply via email to

[Prev in Thread] Current Thread [Next in Thread]