libexpr: CompareValues can take const references

Change-Id: I5ab1e9f71c2f066eb9bb39683ff00c5190c1fcd7
Signed-off-by: Raito Bezarius <raito@lix.systems>
This commit is contained in:
Raito Bezarius
2025-10-06 22:27:36 +02:00
parent 14737888e0
commit b5d31b7780
+6 -1
View File
@@ -454,7 +454,12 @@ struct CompareValues : NeverAsync
return (*this)(v1, v2, errorCtx);
}
bool operator()(Value & v1, Value & v2, std::string_view errorCtx) const
bool operator()(Value const & v1, Value const & v2) const
{
return (*this)(v1, v2, errorCtx);
}
bool operator()(Value const & v1, Value const & v2, std::string_view errorCtx) const
{
try {
if (v1.type() == nFloat && v2.type() == nInt) {