48#if defined(HAVE_GCC_ABI_DEMANGLE) && defined(HAVE_TEUCHOS_DEMANGLE)
55#if defined(HAVE_GCC_ABI_DEMANGLE) && defined(HAVE_TEUCHOS_DEMANGLE)
72 true, std::logic_error,
73 "Error, name demangling with g++ has been enabled but the function "
74 "abi::__cxa_demangle(" <<
mangledName <<
") returned returnVal = " <<
76 "suggests that name demangling may be broken on this platform." << endl
77 <<
"You may prevent this exception from being thrown in the future by "
78 "turning off name demangling for this build at configure time." << endl
79 <<
"Do this by setting the CMake configuration option "
80 "Teuchos_ENABLE_GCC_DEMANGLE to OFF." << endl <<
"Add the following to "
81 "your list of CMake options:" << endl << endl <<
82 " -D Teuchos_ENABLE_GCC_DEMANGLE:BOOL=OFF" << endl);
Defines basic traits returning the name of a type in a portable and readable way.
Concrete serial communicator subclass.
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Macro for throwing an exception with breakpointing to ease debugging.
TEUCHOSCORE_LIB_DLL_EXPORT std::string demangleName(const std::string &mangledName)
Demangle a C++ name if valid.