10#ifndef TEUCHOS_DYN_CAST_HPP 
   11#define TEUCHOS_DYN_CAST_HPP 
   33  virtual const char* what() 
const throw() { 
return msg.data(); }
 
 
   41  const std::string &
T_to 
  139template <
class T_To, 
class T_From>
 
Defines basic traits returning the name of a type in a portable and readable way.
 
Smart reference counting pointer class for automatic garbage collection.
 
Default traits class that just returns typeid(T).name().
 
Exception class for bad cast.
 
std::string typeName(const T &t)
Template function for returning the concrete type name of a passed-in object.
 
T_To & dyn_cast(T_From &from)
Dynamic casting utility function meant to replace dynamic_cast<T&> by throwing a better documented er...
 
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
 
TEUCHOSCORE_LIB_DLL_EXPORT void dyn_cast_throw_exception(const std::string &T_from, const std::string &T_from_concr, const std::string &T_to)