Boost logo

Boost Users :

From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2007-02-23 18:07:06


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 23 February 2007 17:49 pm, Peter Dimov wrote:
> Frank Mori Hess wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On Friday 23 February 2007 17:06 pm, Peter Dimov wrote:
> >> slot_type slot( f, ... );
> >>
> >> for_each( tracked.begin(), tracked.end(), bind( &slot_type::track,
> >> _1 ) );
> >
> > Sorry for being pedantic here, but I think you left the "slot"
> > argument out of the bind call?
> >
> > bind( &slot_type::track, slot, _1 )
>
> You're right, I did, but we all knew what I meant. :-) As long as we're
> in pedantic mode:
>
> bind( &slot_type::track, &slot, _1 )

Well, if I was _really_ pedantic, I'd remind you that the clever designer
of mem_fn made the following allowance:

"the returned function object can take a pointer, a reference, or a smart
pointer to an object instance as its first argument"

Fortunately, I'm above that sort of thing :)

- --
Frank
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFF33Oa5vihyNWuA4URAhWlAJ4mboMFIbOFfq23whgmtu9ff42g+ACcDzTT
7g3uVB2n+TTRhx9bSKvfXpQ=
=z3WY
-----END PGP SIGNATURE-----


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net