Make Type_Info internal data private and provide more rigorous definitions for comparisions of objects

This commit is contained in:
Jason Turner
2009-09-08 13:31:14 +00:00
parent 73ec2abd43
commit b185e2e792
5 changed files with 104 additions and 88 deletions

View File

@@ -91,10 +91,10 @@ namespace chaiscript
const Type_Info &ti = types[1];
if (!ti.m_bare_type_info || !(vals[0].get_type_info().m_bare_type_info)
|| type_info_bare_equals(ti, user_type<Boxed_Value>())
|| type_info_bare_equals(ti, user_type<Boxed_POD_Value>())
|| type_info_bare_equals(vals[0].get_type_info(), ti))
if (ti.is_unknown() || vals[0].get_type_info().is_unknown()
|| ti.bare_equal(user_type<Boxed_Value>())
|| ti.bare_equal(user_type<Boxed_POD_Value>())
|| ti.bare_equal(vals[0].get_type_info()))
{
return true;
} else {