
Then use a pointer to mem_fn for the bimap and not directly the function pointer.
-----Messaggio originale----- Da: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] Per conto di Siegfried Kettlitz Inviato: lunedì 3 novembre 2008 16.37 A: boost-users@lists.boost.org 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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users