Boost logo

Boost :

From: Gary Powell (Gary.Powell_at_[hidden])
Date: 2000-03-16 11:23:11


> > ->* don't
> > work either because they have a defined return type, which is not what
> you
> > want in this case.
>
> I don't see any restrictions on ->*. What do you mean ?
> Valentin Bonnard
>
>
> --
The problem is that what I want to write is

  transform(a.begin(), a.end(), b.begin(), arg1->*MemberObj);

What I need to do is build a delayed expression of
arg1::operator->*(MemberObjoffsetData), so that later I can execute it.
operator->(), operator->*() can't tell me what's coming next. Note: arg1
isn't a element of a, its a place holder.

  Is there a way to capture the next bit of information? (The offsetData?)

  My understanding is that arg1::operator->*() must return a object whose
member pointer has a MemberObj. If I had this offset data I could save it
away and when the fn(*aIter pMobj) is called inside the transform, I could
then do return pMobj->*Offset.

  Any help here would be appreciated.

Re: operator?()

  In the WP '96 13.6.25->28 I see now is only for built-in operators. Too
bad.

-gary-


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