Boost logo

Boost :

From: Nestal Wan Wai Ho (me_at_[hidden])
Date: 2002-04-10 01:46:25


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 or
  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 using
  mem_fun_ref instead.

I use gcc 3.0.4 and boost_1_26_0.

Thanks for any help in advance.

Nestal


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk