|
Boost Users : |
Subject: Re: [Boost-users] Member-Function to String conversion.
From: Andrea Denzler (andrea_at_[hidden])
Date: 2008-11-03 10:52:43
I mean to use a pointer to mem_fn, not a pointer to the member function.
pointer_type pointer;
pointer = someobject.get_pointer( "foobar2" );
What is pointer_type? You said a mem_fn object. Then use a pointer to this
mem_fn object for the bimap item.
> -----Messaggio originale-----
> Da: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] Per conto di Siegfried Kettlitz
> Inviato: lunedì 3 novembre 2008 16.47
> A: boost-users_at_[hidden]
> Oggetto: Re: [Boost-users] Member-Function to String conversion.
>
> > Then use a pointer to mem_fn for the bimap and not directly the function
> > pointer.
>
> That's not possible because when:
> mem_fn a( &class::function );
> mem_fn b( &class::function );
> then a and b are different objects but internally point to the same
> function.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
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