You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add caching mechanism for derived castPtr() in Any
Improves Any::castPtr() by caching results of std::dynamic_pointer_cast to avoid repeated casts.
Adds _cached_type to track the last casted type and reuse the cached pointer.
Also simplifies the case where the requested type matches the root base.
0 commit comments