Topic: <bitstring>


Author: Valentin BONNARD <Bonnard.V@wanadoo.fr>
Date: 1999/03/10
Raw View
Steve Clamage wrote:
>
> Valentin Bonnard <Bonnard.V@wanadoo.fr> writes:
>
> >Sean Shubin wrote:
>
> >> In the book "The draft Standard C++ Library" by P.J. Plauger, Chapter
> >> 18 mentions the <bitstring> header.
>
> >This book is completly obsolete and useless except for historical
> >purposes.
>
> I think that is unfair.

I don't think so. The book was probably valuable at the time it was
published (just as C++PL 1). But the library we have now isn't exactly
the one described (I mean in Plauger's book, not in C++PL 1 !).

Not only STL has been added, but iostream has completly changed
(stringstream, templatisation), the whole locale stuff is new,
plus the numerical classes (valarray, templatised complex). The
whole thing has moved from some_very_long_namespace_name to std.
(Or perhaps namespaces didn't existed at that time... don't
remember.)

So I think that I am not unfair, but that Plauger has simply been
unlucky.

> But then, its primary
> purpose was not necessarily to be a reference manual.

I was under the impression that it was intented to be a reference
manual (even if it isn't just that).

> The book is still valuable as a case study in writing a
> standard-conforming portable library. The issues that Plauger
> addresses are always of concern, even in application libraries.
> You can learn a lot by studying how he constructs the library code.
> Plauger bring to bear uncommon intelligence and insight, and many
> years of experience in working on language standards and producing
> standard-conforming portable code.

--

Valentin Bonnard


[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]






Author: Ralf Stoffels <stoffels@faho.rwth-aachen.de>
Date: 1999/03/11
Raw View

> > Anybody know what became of the
> > bitstring class?  Is there another way of "manipulating varying-length
> > sequences of bits"?
>
> std::vector<bool>
>
> Your compiler might call it bit_vector.

If you are interested in "non-varying-length sequences of bits", too,
you can use std::bitset.


Ralf


[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]






Author: sean.shubin@www.anything.com (Sean Shubin)
Date: 1999/03/09
Raw View
In the book "The draft Standard C++ Library" by P.J. Plauger, Chapter
18 mentions the <bitstring> header.  There is no mention of this
header in the document "International Standard ISO/IEC 14882,
Programming Languages -- C++".  Anybody know what became of the
bitstring class?  Is there another way of "manipulating varying-length
sequences of bits"?
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]





Author: Valentin Bonnard <Bonnard.V@wanadoo.fr>
Date: 1999/03/09
Raw View
Sean Shubin wrote:

> In the book "The draft Standard C++ Library" by P.J. Plauger, Chapter
> 18 mentions the <bitstring> header.

This book is completly obsolete and useless except for historical
purposes.

> There is no mention of this
> header in the document "International Standard ISO/IEC 14882,
> Programming Languages -- C++".

Correct

> Anybody know what became of the
> bitstring class?  Is there another way of "manipulating varying-length
> sequences of bits"?

std::vector<bool>

Your compiler might call it bit_vector.

--

Valentin Bonnard


[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]






Author: clamage@eng.sun.com (Steve Clamage)
Date: 1999/03/10
Raw View
Valentin Bonnard <Bonnard.V@wanadoo.fr> writes:

>Sean Shubin wrote:

>> In the book "The draft Standard C++ Library" by P.J. Plauger, Chapter
>> 18 mentions the <bitstring> header.

>This book is completly obsolete and useless except for historical
>purposes.

I think that is unfair. The book describes a version of the standard
library that existed just before STL was added. (Bad luck on
P. J. Plauger's part. At the time he wrote the book, it looked
like the library was stabilizing.)

The basic ideas of most of the library have not changed, although
the final library is different in many details. The book is not
useful as a reference for standard C++. But then, its primary
purpose was not necessarily to be a reference manual.

The book is still valuable as a case study in writing a
standard-conforming portable library. The issues that Plauger
addresses are always of concern, even in application libraries.
You can learn a lot by studying how he constructs the library code.
Plauger bring to bear uncommon intelligence and insight, and many
years of experience in working on language standards and producing
standard-conforming portable code.

--
Steve Clamage, stephen.clamage@sun.com
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]