
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Dizzy Sent: Thursday, March 29, 2007 5:05 AM To: boost-users@lists.boost.org Subject: [Boost-users] [lambda] logical operators related errors #include <boost/lambda/lambda.hpp> #include <boost/bind.hpp> #include <boost/mem_fn.hpp> int main() { using boost::bind; using boost::mem_fn; A a1("str1", "str2", "str3"); A a2("str2", "str1", "str3"); eval(((bind(&A::s1, _1) < bind(&A::s1, _2)) && (bind(&A::s2, _1) < bind(&A::s2, _2)))(a1, a2)); } This errors compiling about operator&& no match found. [Nat] I think the problem may be that you're mixing boost::bind with plain operators. Try using boost::lambda::bind instead and see if you get farther.