I have a boost::tuple list and I am using remove method to remove one of the entrie开发者_开发技巧s from that list. But I am getting the following error. How can I get rid of this?
c:\program files\microsoft visual studio 8\vc\include\algorithm(40) : error C2678: binary '==' : no operator found which takes a left-hand operand of type 'boost::tuples::tuple' (or there is no acceptable conversion)
You have to add an extra header for the comparisons
#include "boost/tuple/tuple_comparison.hpp"
see this link
http://www.boost.org/doc/libs/1_47_0/libs/tuple/doc/tuple_users_guide.html#using_library
精彩评论