diff options
author | Mathias Preiner <mathias.preiner@gmail.com> | 2021-02-23 15:56:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-23 15:56:16 -0800 |
commit | 4c0dbb8ec7871ff114a9e66233cd8c8dd853f0b4 (patch) | |
tree | 3c2544cba74aed61ec65f1d06f5430a8874d5e11 /src/expr | |
parent | eeb74f13bdf16aeda2e4d5fe7b4880cb17702fe4 (diff) |
Switch to C++17. (#5959)
Co-authored-by: Gereon Kremer <nafur42@gmail.com>
Diffstat (limited to 'src/expr')
-rw-r--r-- | src/expr/node.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/expr/node.h b/src/expr/node.h index 75d4d2022..559ce5ddb 100644 --- a/src/expr/node.h +++ b/src/expr/node.h @@ -1451,8 +1451,10 @@ NodeTemplate<ref_count>::substitute(Iterator substitutionsBegin, } // otherwise compute - Iterator j = find_if(substitutionsBegin, substitutionsEnd, - bind2nd(first_equal_to<typename Iterator::value_type::first_type, typename Iterator::value_type::second_type>(), *this)); + Iterator j = find_if( + substitutionsBegin, + substitutionsEnd, + [this](const auto& subst){ return subst.first == *this; }); if(j != substitutionsEnd) { Node n = (*j).second; cache[*this] = n; |