Commit c99183fe authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

npapi: utils: Variant: Allow comparison operations

parent 4a836825
......@@ -412,6 +412,30 @@ public:
return &m_variant;
}
template <typename T>
bool operator<(const T& rhs) const
{
return (const T)*this < rhs;
}
template <typename T>
bool operator<=(const T& rhs) const
{
return (const T)*this <= rhs;
}
template <typename T>
bool operator>(const T& rhs) const
{
return (const T)*this > rhs;
}
template <typename T>
bool operator>=(const T& rhs) const
{
return (const T)*this >= rhs;
}
~Variant()
{
release();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment