Critical type_info ordering fix. Was using a less than comparison on pointers, which sometimes resulted in differing behavior between compilations.

This commit is contained in:
Stephen Berry 2018-02-15 08:57:54 -06:00
parent 0391a9c715
commit 2dbfdfe111

View File

@ -48,7 +48,7 @@ namespace chaiscript
constexpr bool operator<(const Type_Info &ti) const noexcept constexpr 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 constexpr bool operator!=(const Type_Info &ti) const noexcept