mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-07 01:06:54 +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
|
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user