| delorie.com/archives/browse.cgi | search |
| From: | paul DOT bibbings AT tesco DOT net (Paul Bibbings) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | <bitset.h> header file incomplete? |
| Date: | Wed, 02 Aug 2000 23:23:13 GMT |
| Organization: | Customer of Energis Squared |
| Lines: | 19 |
| Message-ID: | <3988aa8c.6036773@news.freeserve.net> |
| NNTP-Posting-Host: | modem-51.euthyrox.dialup.pol.co.uk |
| X-Trace: | newsg2.svr.pol.co.uk 965258604 31337 62.136.93.179 (2 Aug 2000 23:23:24 GMT) |
| NNTP-Posting-Date: | 2 Aug 2000 23:23:24 GMT |
| X-Complaints-To: | abuse AT theplanet DOT net |
| X-Newsreader: | Forte Free Agent 1.21/32.243 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Trying to use the various functions and operators declared in <bitset>
I hit errors stating that CHAR_BIT was not defined in the scope of
c:\djgpp\lang\cxx\bitset and later that min() was implicitly declared.
Checking the headers declared in bitset I found the following
#include <stddef.h> // for size_t
#include <string>
#include <stdexcept> // for invalid_argument, out_of_range,
overflow_error
#include <iostream.h> // for istream, ostream
but only through adding these two was I able to use bitset properly
#include <limits.h> // for CHAR_BIT
#include <minmax.h> // for min()
Is this, or something similar, an omission on the part of this
particular header file?
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |