I have this template signature:

template<typename T>
TBool Foo(const T& aData)
{
}

The problem is providing template specializations for something which is already a template itself eg a TBuf.

We came up with this method which compiles and works for winscw but not armv5:

template<>
template <const TInt N>
inline TBool Foo<TBufC8<N> > (const TBufC8<N>& aData)
{
}

Error from compilation for armv5 is:

Error: #777: this declaration cannot have multiple "template <...>" clauses
inline TBool Foo<TBufC8<N> > (const TBufC8<N>& aData)

Any ideas anyone?

Thanks,

Chi