C
Chameleon
Where is the problem in the code below?
The g++ error message is:
(all throwed in the last line)
`Texture' was not declared in this scope
template argument 2 is invalid
expected `{' before '>' token
expected unqualified-id before '>' token
declaration of `class TextureUnit<K>'
--------------------------------------
template<typename K>
class Texture {};
template<typename K>
class TextureUnit : public ObjectPool<K, Texture<K> > {};
--------------------------------------
The g++ error message is:
(all throwed in the last line)
`Texture' was not declared in this scope
template argument 2 is invalid
expected `{' before '>' token
expected unqualified-id before '>' token
declaration of `class TextureUnit<K>'
--------------------------------------
template<typename K>
class Texture {};
template<typename K>
class TextureUnit : public ObjectPool<K, Texture<K> > {};
--------------------------------------