Make Type_Info internal data private and provide more rigorous definitions for comparisions of objects
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user