Allow compiling with c++11 enabled

This commit is contained in:
Michael R. Fisher
2013-07-15 16:44:03 -05:00
committed by Paul Davis
parent b102e1425c
commit 8f33b7101f

View File

@@ -3,6 +3,7 @@
#include "flag_field.h"
#include <cstdlib>
#include <string>
#ifdef __GNUC__
@@ -24,7 +25,7 @@ struct DebugUtils
char * res = abi::__cxa_demangle (typeid(obj).name(), 0, 0, &status);
if (status == 0) {
std::string s(res);
free (res);
std::free (res);
return s;
}
#endif