Boost logo

Boost Users :

From: martin f krafft (madduck_at_[hidden])
Date: 2005-05-14 09:29:09


Some of my code includes the following (abbreviated):

  typedef Edge<Node0000Type, Node0000Type> Edge00000000Type;
  typedef Edge<Node0000Type, Node0001Type> Edge00000001Type;
  typedef Edge<Node0000Type, Node0010Type> Edge00000010Type;
  typedef Edge<Node0000Type, Node0011Type> Edge00000011Type;
  //... you can imagine where this is going.

Instead of 32 typedefs, I was wondering if it weren't possible to
use the compiler to achieve the above.

Similarly, let's say I wanted to define a set of empty classes:

  class AB : public A, B {};
  class AC : public A, C {};
  class BC : public B, C {};

can I use the compiler to automate this?

Thanks for any comments.

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net_at_madduck
 
invalid/expired pgp subkeys? use subkeys.pgp.net as keyserver!
spamtraps: madduck.bogus_at_[hidden]
 
"arguments are extremely vulgar,
 for everyone in good society
 holds exactly the same opinion."
                                                        -- oscar wilde



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