You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to see the ability to allow const reference to a jmespath_expression, to ensure that it's read-only and allow the compiler to do any optimisations.
It appears that the jmespath_expression::evaluate() are not const methods and therefore preventing making a useful const reference.
I was a bit concerned that the jmespath_expression was mutating itself each evaluate, but after applying a const to the evaluate() methods, and then made the jmespath_expression a const reference, it didn't seem to have any issue.
The text was updated successfully, but these errors were encountered:
I would like to see the ability to allow const reference to a
jmespath_expression
, to ensure that it's read-only and allow the compiler to do any optimisations.It appears that the
jmespath_expression::evaluate()
are not const methods and therefore preventing making a useful const reference.I was a bit concerned that the
jmespath_expression
was mutating itself each evaluate, but after applying aconst
to theevaluate()
methods, and then made thejmespath_expression
a const reference, it didn't seem to have any issue.The text was updated successfully, but these errors were encountered: