Merge pull request #411 from stephenberry/develop

Critical fix of type_info ordering (less than operator)
This commit is contained in:
Jason Turner 2018-05-25 16:27:56 -06:00 committed by GitHub
commit dae0f3dd62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,9 +46,9 @@ namespace chaiscript
constexpr Type_Info() = default;
constexpr bool operator<(const Type_Info &ti) const noexcept
bool operator<(const Type_Info &ti) const noexcept
{
return m_type_info < ti.m_type_info;
return m_type_info->before(*ti.m_type_info);
}
constexpr bool operator!=(const Type_Info &ti) const noexcept