X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Findexed.cpp;h=d5f7bf85eccaeaa6fc92736a3530afc4939dfe46;hp=55c9768d9445d3555ab6486a8267ec8b4d273605;hb=9593ce33c14b7ff535d113f8a825f4c42ca81912;hpb=b236efe23093bf2c4b5e7702b60d45505724d915 diff --git a/ginac/indexed.cpp b/ginac/indexed.cpp index 55c9768d..d5f7bf85 100644 --- a/ginac/indexed.cpp +++ b/ginac/indexed.cpp @@ -243,12 +243,6 @@ bool indexed::info(unsigned inf) const return inherited::info(inf); } -struct idx_is_not : public std::binary_function { - bool operator() (const ex & e, unsigned inf) const { - return !(ex_to(e).get_value().info(inf)); - } -}; - bool indexed::all_index_values_are(unsigned inf) const { // No indices? Then no property can be fulfilled @@ -256,7 +250,8 @@ bool indexed::all_index_values_are(unsigned inf) const return false; // Check all indices - return find_if(seq.begin() + 1, seq.end(), bind2nd(idx_is_not(), inf)) == seq.end(); + return find_if(seq.begin() + 1, seq.end(), + [inf](const ex & e) { return !(ex_to(e).get_value().info(inf)); }) == seq.end(); } int indexed::compare_same_type(const basic & other) const