Jaakko,
Thanks for your reply, I tried some of your suggestions and they are
still giving me compile errors. Here is some code that Ive been
playing with. This was compiled in VC8.
struct some_functor
{
private:
int x_;
public:
template<typename SOMETYPE>
some_functor& template_foo(SOMETYPE x){
std::cout<
On Nov 28, 2006, at 10:44 PM, Haroon Khan wrote:
Is it possible to bind to the following functions using boost.lamdba and if so how?
class some_class { public: some_class operator % (int x) { return this }
template<typename T> void foo(T x){ } };
I use the examples given in online-documentation but it gives me a lot of errors. I'm using VC8 on windows XP.
Not exactly sure what you are after but here are a few valid ways:
some_class s; int i; ret
(var(s) % _1)(i); bind(&some_class::operator%, var(s), _1)(i); bind(&some_class::operator%, &s, _1)(i); bind(&some_class::foo<int>, var(s), _1)(i); bind(&some_class::foo<int>, &s, _1)(i); Cheers, Jaakko
Thanks, Haroon _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users