Boost logo

Boost :

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


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,

                  David Abrahams
      C++ Booster ( O__ ==
      Pythonista ( c/ /'_ ==
  resume: (*) \(*) ==
          email: david.abrahams_at_[hidden]

Boost list run by bdawes at, gregod at, cpdaniel at, john at