libexpr: CompareValues can take const references
Change-Id: I5ab1e9f71c2f066eb9bb39683ff00c5190c1fcd7 Signed-off-by: Raito Bezarius <raito@lix.systems>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user