Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-04-02 17:29:17


Hi,

I think I've hit on the (nearly) perfect compromise for my use of the
preprocessor lib. I want to write out the first few repeats of a family
of repeated constructs by hand (for debugga- and comprehensi- bility),
then generate additional repetitions as specified by a numeric macro
argument. The problem I've got is one of maintenance. How can I verify
(preferably using the compiler or other automated tools) that my PP
construct generates the same code as the other one?

I guess one possibility would be to temporarily turn off the
hand-written instances and try to compile again, but that's not really
the same as verifying that they generate the same tokens, is it?

Any hints appreciated,
Dave

+---------------------------------------------------------------+
                  David Abrahams
      C++ Booster (http://www.boost.org) O__ ==
      Pythonista (http://www.python.org) c/ /'_ ==
  resume: http://users.rcn.com/abrahams/resume.html (*) \(*) ==
          email: david.abrahams_at_[hidden]
+---------------------------------------------------------------+


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk