
4 Sep
2010
4 Sep
'10
1:24 a.m.
On Fri, Sep 3, 2010 at 8:46 PM, Ryan McConnehey
I have a class that mostly remains the same except for the variables and functions to retrieve the variables. I've looked at boost preprocessor and it seems more designed to create classes that have a fixed number of variables but different defaults. Could any of the boost libraries turn the included class into boilerplate code that allows an arbitrary number of variables? The example below only has three variables but I could have used any number.
<snip> Your example looks like a perfect use for Boost.Preprocessor. Have you read through http://www.boostpro.com/tmpbook/preprocessor.html ? -- Dave Abrahams BoostPro Computing http://www.boostpro.com