diff options
author | loewis <loewis@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-11-06 16:20:39 +0000 |
---|---|---|
committer | loewis <loewis@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-11-06 16:20:39 +0000 |
commit | e96e57d538984d7c85064447e10583a9917898f5 (patch) | |
tree | 3a164c4836653606e9069cbcb734fc06e797eaf4 /libstdc++ | |
parent | c9f3a5e6f7f764f3b7e0612aee71465c4cd76321 (diff) | |
download | gcc-e96e57d538984d7c85064447e10583a9917898f5.tar.gz |
* bitset: Include limits.h.
* bitset (class bitset): Declare reference as our friend.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30430 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++')
-rw-r--r-- | libstdc++/stl/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++/stl/bitset | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libstdc++/stl/ChangeLog b/libstdc++/stl/ChangeLog index 74b25a4afda..11d4bfb50c0 100644 --- a/libstdc++/stl/ChangeLog +++ b/libstdc++/stl/ChangeLog @@ -1,3 +1,8 @@ +1999-11-06 Martin v. Löwis <loewis@informatik.hu-berlin.de> + + * bitset (class bitset): Declare reference as our friend. + * bitset: Include limits.h. + 1999-08-08 Alexandre Oliva <oliva@dcc.unicamp.br> * pthread_alloc: Solaris' ctype.h defines _U to 01; use _Up as diff --git a/libstdc++/stl/bitset b/libstdc++/stl/bitset index e26845ed045..8b4f8b1a0f8 100644 --- a/libstdc++/stl/bitset +++ b/libstdc++/stl/bitset @@ -36,6 +36,7 @@ #include <stddef.h> // for size_t +#include <limits.h> // for CHAR_BIT #include <string> #include <stdexcept> // for invalid_argument, out_of_range, overflow_error #include <iostream.h> // for istream, ostream @@ -568,6 +569,8 @@ private: public: // bit reference: + class reference; + friend class reference; class reference { friend class bitset; |