
9 Nov
2004
9 Nov
'04
3:08 p.m.
On Tue, 9 Nov 2004 10:00:48 -0500, Jody Hagins <jody-boost-011304@atdesk.com> wrote:
If I understand what you are asking, I have been using a "type index" container for a while. However, my solution depends on using static data members of a template class. Specifically, I have a mechanism that assigns a unique runtime integral value to each type, and then that value is used to index into a vector or map of boost::any, and then since it "knows" the type, a cast is performed to the appropriate type.
Does that sound like what you are asking about, or am I out to lunch?
Sounds like it could be. Could you send along an example? -- Caleb Epstein caleb.epstein@gmail.com