Boost logo

Boost :

From: Caleb Epstein (caleb.epstein_at_[hidden])
Date: 2004-11-09 10:08:43


On Tue, 9 Nov 2004 10:00:48 -0500, Jody Hagins
<jody-boost-011304_at_[hidden]> 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_at_[hidden]

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk