Boost logo

Boost :

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:
<snip detail...>

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
Mobile: +639287291459
Email: dean [at] orangeandbronze [dot] com

Boost list run by bdawes at, gregod at, cpdaniel at, john at