Changeset 115:a47d5c361f5e in rrlib_logging


Ignore:
Timestamp:
07.02.2014 18:23:13 (6 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
default
Phase:
public
Message:

Switched to symbol demangling from rrlib_util

File:
1 edited

Legend:

Unmodified
Added
Removed
  • messages/tStream.h

    r114 r115  
    6464 
    6565#include "rrlib/time/time.h" 
     66#include "rrlib/util/demangle.h" 
    6667 
    6768//---------------------------------------------------------------------- 
     
    153154  inline tStream &operator << (const std::exception &exception) 
    154155  { 
    155     this->stream << "Exception ("; 
    156     int status; 
    157     char *demangled = abi::__cxa_demangle(typeid(exception).name(), nullptr, nullptr, &status); 
    158     this->stream << (status == 0 && demangled ? demangled : typeid(exception).name()); 
    159     free(demangled); 
    160     this->stream << "): " << exception.what(); 
     156    this->stream << "Exception (" << util::Demangle(typeid(exception).name()) << "): " << exception.what(); 
    161157    return *this; 
    162158  } 
Note: See TracChangeset for help on using the changeset viewer.