From: Dean Michael Berris (mikhailberis_at_[hidden])
Date: 2006-06-29 15:28:47
On 6/29/06, Jeff Garland <jeff_at_[hidden]> wrote:
> How about boost.assign:
Quick quesiton would be, is this static or done during runtime?
I also recall that Boost.Fusion already allows you to create static
maps, but those are used to index values using types as indexes.
It's interesting to be able to do something like an "enum" but where
the index is a string/const char * and the value's type is
templatized. But then I'd rather use the standard map to do this,
since I'll be dealing with the values in runtime anyway.
I suppose static maps will make a lot of sense if you need to deal
with it in template metaprogramming or even preprocessing...
Otherwise, it's just another way of implementing a simple map.
-- Dean Michael C. Berris C/C++ Software Architect Orange and Bronze Software Labs http://3w-agility.blogspot.com/ http://cplusplus-soup.blogspot.com/ Mobile: +639287291459 Email: dean [at] orangeandbronze [dot] com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk