Boost logo

Boost Users :

Subject: Re: [Boost-users] Creating a map between two sets of classes
From: Gokulakannan Somasundaram (gokul007_at_[hidden])
Date: 2010-03-02 00:46:35


WOW!!!

There are so many ways to solve the issue in C++. Thanks a lot.

Gokul.

On Tue, Mar 2, 2010 at 8:52 AM, Steven Watanabe <watanabesj_at_[hidden]>wrote:

> AMDG
>
>
> Gokulakannan Somasundaram wrote:
>
>> Thanks, i got it.
>> It was very helpful. Is there a similar solution to associate a member
>> function with a class?
>>
>>
>
> You can store the member function in a type and use mpl::map.
>
> template<class MemPtr, MemPtr P>
> struct mem_fun {};
>
>
>
> In Christ,
> Steven Watanabe
>
> _______________________________________________
> 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