From 9819699105afd9efdc204a7eeba66675a94cd3df Mon Sep 17 00:00:00 2001 From: Ryan Alexander Date: Mon, 4 Aug 2014 13:56:23 -0700 Subject: [PATCH] Add include for std::free from --- sol/demangle.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sol/demangle.hpp b/sol/demangle.hpp index 77de1311..694a2be2 100644 --- a/sol/demangle.hpp +++ b/sol/demangle.hpp @@ -24,6 +24,7 @@ #include #include +#include #if defined(__GNUC__) || defined(__clang__) #include @@ -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; }