13
0

Allow compiling with c++11 enabled

This commit is contained in:
Michael R. Fisher 2013-07-15 16:44:03 -05:00 committed by Michael Fisher
parent 3e11c80ac3
commit 693713ecdb

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