Can QSharedPointer<T>::dynamicCast be specialized?

  • I just tried specialized dynamicCast for a custom type:

    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?

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.