Add include for std::free from <cstdlib>

This commit is contained in:
Ryan Alexander 2014-08-04 13:56:23 -07:00 committed by Rapptz
parent 14b1a3fe0c
commit 9819699105

View File

@ -24,6 +24,7 @@
#include <string>
#include <array>
#include <cstdlib>
#if defined(__GNUC__) || defined(__clang__)
#include <cxxabi.h>
@ -41,7 +42,7 @@ std::string get_type_name(const std::type_info& id) {
int status;
char* unmangled = abi::__cxa_demangle(id.name(), 0, 0, &status);
std::string realname = unmangled;
free(unmangled);
std::free(unmangled);
return realname;
}