Boost logo

Boost Users :

Subject: Re: [Boost-users] Creating a map between two sets of classes
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-03-01 22:22:16


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 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