RAD Studio
ContentsIndex
PreviousUpNext
E2387: Partial specializations may not specialize dependent non-type parameters ('parameter') (C++)

A partial specialization may not use a template parameter in its specialization argument list which is dependent on another type parameter. For example:

template<class T, int U>
class foo;
template<class T, T U>
class foo<T *, U>;      // error: 'U' is type-dependent
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!