
7 Sep
2007
7 Sep
'07
3:17 p.m.
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