$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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