Boost logo

Boost Users :

Subject: Re: [Boost-users] Member-Function to String conversion.
From: Andrea Denzler (andrea_at_[hidden])
Date: 2008-11-03 10:41:34


Then use a pointer to mem_fn for the bimap and not directly the function
pointer.

> -----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.37
> A: boost-users_at_[hidden]
> Oggetto: Re: [Boost-users] Member-Function to String conversion.
>
> > pointer_type pointer;
> > pointer = someobject.get_pointer( "foobar2" );
> >
> > What is pointer_type?
>
> That would be something like mem_fn - not actually a pointer but an
> object that stores the pointer. The actual pointer can be extracted
> from that object when it is known, or the function can be called via
> this object.
>
> > Once you define pointer_type you can use it in the
> > bimap.
>
> As far as i know, comparing mem_fn or similar functions cannot compare
> the pointers because they are of different types.
> _______________________________________________
> 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