Can QSharedPointer<T>::dynamicCast be specialized?
-
I just tried specialized dynamicCast for a custom type:
@template<>
QSharedPointer<FooDerivedType> QSharedPointer<FooBaseType>::dynamicCast<FooDerivedType>()@which yielded the following compiler error:
error C2768: 'QSharedPointer<T>::dynamicCast' : illegal use of explicit template arguments
which I don't really understand. Can anyone explain the error?