From: spamjunk (spamjunk_at_[hidden])
Date: 2002-08-27 18:01:56
They aren't always known at compile-time. You can create sets dynamically
at run-time, using the constructor. What SetOf allows you to do is, if all
the elements are compile-time constants, create the entire set as a
compile-time constant. You could use the same argument for SetOf, but it
would still have to be "converted" to an actual set of bits before
interacting with other sets, so you wouldn't actually be saving anything.
----- Original Message -----
From: "Joel de Guzman" <djowel_at_[hidden]>
Sent: Tuesday, August 27, 2002 6:43 PM
Subject: Re: [boost] discrete_set class
> ----- Original Message -----
> From: <spamjunk_at_[hidden]>
> > I added some preliminary documentation here:
> > http://groups.yahoo.com/group/boost/files/Set/discrete_set.html
> > I will add to it as time permits.
> > Rich Herrick
> If all the elements of the set are known at compile time, why
> do you need to store the bits at all? Your class can encode
> the information in its type, thus, your class can consume
> zero bytes.
> Unsubscribe & other changes:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk