$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Jeff Garland (jeff_at_[hidden])
Date: 2007-09-07 11:17:29
Marcus Lindblom wrote:
> Marcus Lindblom wrote:
>> Hi,
>>
>> I have some code that helps with defining iostream-operators for enums.
>> We use this in our C++<->xml bindings.
>>
>> Basically, it's just two maps (string->enum & enum<-string) and some
>> syntactic sugar. However, I happen to think it is quite neat and so
>> figured it might be useful to other people too. (And it's always nice to
>> give something back :)
>>
>> So, is this something that would fit in boost?
>
> Ping? Am I way off here?
I think there'd be some interest. Basically enums without a string mapping
aren't much use -- and there was interest in boost_enum and other enum related
helpers.
BTW, in case you aren't aware you can use boost.bimap so you should only need
one map.
Jeff