VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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)
 works like boost::polymorphic_downcast with boost::shared_ptr use when a cast should always work but you want to assert it during debug

Detailed Description

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 Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)