Go to the documentation of this file.
18 #ifndef PTR_PASSER_HPP
19 #define PTR_PASSER_HPP
22 const std::type_info&
tval;
28 if(
typeid(T)==
typeid(
void)){
29 err(
"A ptr_passer is being used to pass a void pointer",
30 "ptr_passer/get_ptr.hpp",
"utils/ptr_passer.hpp",
WARNING);
38 if(
typeid(T) !=
tval){
40 " has been requested from a ptr_passer of type " +
tval.name(),
41 "ptr_passer/get_ptr.hpp",
"utils/ptr_passer.hpp",
FATAL_ERROR);
43 return static_cast<T*
>(
_ptr);