mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
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:
parent
0391a9c715
commit
2dbfdfe111
@ -48,7 +48,7 @@ namespace chaiscript
|
||||
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user