This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: result type of an operation betweem signed and unsigned, c++


Hi.
This one is great.
Thanks,
Dima.

On 4/25/07, Marco Manfredini wrote:
Since this list is gcc specific:

#include <cxxabi.h>
#include <typeinfo>
const char *demangle(const std::type_info &f)
{
        static char *buf=0;
        static size_t l=0;
        int st;
        buf=::abi::__cxa_demangle(f.name(), buf, &l, &st);
        return (st==0)?buf:"(error)";
}



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]