no == defined for boost::tuples
问题 I have this code: ... #include "boost/tuple/tuple_comparison.hpp" ... template <typename ReturnType, typename... Args> function<ReturnType(Args...)> memoize(const Args && ... args) { using noRef = boost::tuple<typename std::remove_reference<Args>::type...>; static map<noRef, ReturnType, less<>> cache; auto key = std::tie(noRef{ boost::make_tuple(args ...) }); auto it = cache.lower_bound(key); ReturnType result; if (it->first == key) { ... But when I try to compile it I receive this error: