Boost logo

Boost Users :

From: midnight2silverlake (midnight2silverlake_at_[hidden])
Date: 2002-12-06 08:08:49


I have what looks like a perfect application for Boost/Preprocessor.
I have 192 entries in a Factory Map a portion of which are show
below. I'd like to generate the permutations of the three macro
inputs, but can't figure out where to start. Any help would be
appreciated.

#define MAP_ENTRY_MCR( aLang, aType, aAcc ) \
\
mMap[ CKey( aLang, aType, aAcc ) ] \
= CVarX< aLang, aType, aAcc >::Make;

   MAP_ENTRY_MCR( DCTlanguageC, DCT_DOUBLE , DCT_NONE );
   MAP_ENTRY_MCR( DCTlanguageC, DCT_DOUBLE , DCT_INIT );
   MAP_ENTRY_MCR( DCTlanguageC, DCT_DOUBLE , DCT_ANYTIME );
                                                
   MAP_ENTRY_MCR( DCTlanguageC, DCT_FLOAT , DCT_NONE );
   ...

Thanks, Jeff Flinn


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net