mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-07 17:26:55 +08:00
Merge pull request #411 from stephenberry/develop
Critical fix of type_info ordering (less than operator)
This commit is contained in:
commit
dae0f3dd62
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user