Which cast is faster? static_cast of object pointers or static_cast of shared_ptr?
Example in qt:
class Base;
class Derived:Base;
auto newBase = QSharedPointer<Base>::create();
auto Derived1 = static_cast<Derived*>(newBase.data());
auto Derived2 = qSharedPointerCast<Derived>(newBase);
Which operation is faster and why? (i may have some syntax errors, but i hope i'm not).