Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

PXXPointerCasts.h

Go to the documentation of this file.
00001 #ifndef __PXXPointerCasts__H__
00002 #define __PXXPointerCasts__H__
00003 
00011 
00012 #ifdef __USEROOT__   
00013 
00014 namespace boost { 
00015 
00016 template<class T, class U> T* dynamic_pointer_cast(U ptr) {
00017    return dynamic_cast<T*>(ptr);
00018 }
00019 
00020 template<class T, class U> T* static_pointer_cast(U ptr) {
00021    return static_cast<T*>(ptr);
00022 }
00023 
00024 } // namespace boost end
00025 
00026 #else 
00027 
00028 #include "dataclasses/StoragePolicy.h"
00029 
00030 #endif  // __USEROOT__
00031 
00032 #endif  // __PXXPointerCasts__H__
00033 


Generated on Thu Nov 10 14:06:35 2005 by doxygen version 1.4.1