Boost logo

Boost :

From: Jan Langer (jan_at_[hidden])
Date: 2002-04-09 13:20:36


On Tue, 9 Apr 2002, Stewart, Robert wrote:
>hardly think about it (other than to wish for a standardized, template
>version so you can quit rewriting it!).

enum color { brown, blue, green, black };
enum sex { male, female };

template <sex Sex, color EyeColor, color HairColor>
class child
{
 public:
  child (SIUnits::length const &s = 190,
         SIUnits::weigth const &w = 80);
 private:
  SIUnits::length size_;
  SIUnits::weigth weigth_;
};

typedef child <male, blue, brown> boy;

std::vector <boy> own_soccer_team (11);

SCNR, although its quite OT.

-- 
jan langer ... jan_at_[hidden]
"pi ist genau drei"

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