Qt 6.11 is out! See what's new in the release
blog
Can QSharedPointer<T>::dynamicCast be specialized?
General and Desktop
1
Posts
1
Posters
597
Views
1
Watching
-
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?