VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
polymorphic_pointer_downcast.h File Reference

Go to the source code of this file.

Functions

template<typename Derived , typename Base >
boost::shared_ptr< Derived > polymorphic_pointer_downcast (const boost::shared_ptr< Base > &b)
 

Function Documentation

template<typename Derived , typename Base >
boost::shared_ptr<Derived> polymorphic_pointer_downcast ( const boost::shared_ptr< Base > &  b)
inline

works like boost::polymorphic_downcast with boost::shared_ptr use when a cast should always work but you want to assert it during debug


Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)