From: Terence Wilson (tez_at_[hidden])
Date: 2002-04-09 10:08:09
LOL, I'm sure Peter gets weary of answering this one- I asked it a while
ago. What are the chances of boost::bind being accepted to the standard
along with shared_ptr etc? The answer is probably arcane, but can
someone provide rough answer? I hope it goes mainstream soon.
From: boost-admin_at_[hidden] [mailto:boost-admin_at_[hidden]]
On Behalf Of Peter Dimov
Sent: Tuesday, April 09, 2002 7:43 AM
Subject: Re: [boost] Using mem_fn with adaptors
From: "Nestal Wan Wai Ho" <me_at_[hidden]>
> Hi all,
> When I tried to use mem_fn() with adaptors like compose1 or
> boost::compose_f_gx, my complier said it is not happy with mem_fn's
> argument_type. I looked at mem_fn's source code and find that its
> argument_type is a T*, but in my case it should be a T. i.e. in my
> case mem_fn acts like mem_fun_ref instead of mem_fun.
> It is good that mem_fn does not require me to differentiate between T
> T*, but is there a way to let me choose the argument_type I want?
> mem_fn's argument_type is "hard coded" to T* in cmf0 now. I end up
> mem_fun_ref instead.
The short answer is: either use boost::bind instead of compose, or use
Unsubscribe & other changes:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk