Boost logo

Boost Users :

From: Nat Goodspeed (ngoodspeed_at_[hidden])
Date: 2007-03-29 10:42:56


-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Dizzy
Sent: Thursday, March 29, 2007 5:05 AM
To: boost-users_at_[hidden]
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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net