
9 Aug
2011
9 Aug
'11
9:25 a.m.
Hi John,
For the time being, I've made a function called to_string, which seems to be a common choice. But what's the best way to make it automatically known to those other features?
It's not the most pretty solution, but perhaps you could resort to the Boost Preprocessor library to generate both the enum and the 'toString' method for you. Some sample code can be found here on my blog: http://www.smork.info/blog/index.php?entry=entry110809-105615 Kind regards, Benjamin van den Hout