Re: Is there analog of std::mem_fun_t, but for data members?



Alex Blekhman wrote:
Tom Widmer [VC++ MVP] wrote:

Alex Blekhman wrote:

Hello,

I can use std::mem_fun_t as an adaptor for class' member
function. Sometimes I need to access data member in the
same manner. I searched for appropriate adaptor in STL
to no avail.

[snip]

Is there anything in STL that I could use instead of this
home grown class?

No. However, std::tr1::mem_fn (e.g. boost::mem_fn) handles
pointers-to-member.


Thanks. However, boost is not an option for now. I hope next version developmnet will incorporate boost.

With luck, VC9 will incorporate std::tr1 - Dinkumware are certainly working on an implementation.

Tom
.


Loading