diff --git a/luabind/typeid.hpp b/luabind/typeid.hpp index e1a2f335..2484c21b 100644 --- a/luabind/typeid.hpp +++ b/luabind/typeid.hpp @@ -6,6 +6,7 @@ # define LUABIND_TYPEID_081227_HPP # include +# include # include # include @@ -33,17 +34,17 @@ class type_id bool operator!=(type_id const& other) const { - return *id != *other.id; + return std::strcmp(id->name(), other.id->name()) != 0; } bool operator==(type_id const& other) const { - return *id == *other.id; + return std::strcmp(id->name(), other.id->name()) == 0; } bool operator<(type_id const& other) const { - return id->before(*other.id); + return std::strcmp(id->name(), other.id->name()) < 0; } char const* name() const