+2001-06-12 Benjamin Kosnik <bkoz@redhat.com>
+
+ libstdc++/3142
+ * include/bits/std_sstream.h: Add allocator_type, as per DR 251.
+
+ libstdc++/3141
+ * include/bits/istream.tcc (getline, get): Fix as per DR 243.
+
+ libstdc++/3140
+ * include/bits/std_bitset.h (bitset::set): Fix as per DR 186.
+
+ libstdc++/3139
+ * include/bits/limits_generic.h: Fix as per DR 184.
+
2001-06-11 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/3126
static bool max() throw()
{ return true; }
- static const int digits = 8;
- static const int digits10 = 2;
+ static const int digits = 1;
+ static const int digits10 = 0;
static const bool is_signed = false;
static const bool is_integer = true;
static const bool is_exact = true;
static bool denorm_min() throw()
{ return static_cast<bool>(0); }
- static const bool is_iec559 = true;
+ static const bool is_iec559 = false;
static const bool is_bounded = true;
- static const bool is_modulo = true;
+ static const bool is_modulo = false;
static const bool traps = false;
static const bool tinyness_before = false;
return *this;
}
- bitset<_Nb>& set(size_t __pos) {
- if (__pos >= _Nb)
- __STL_THROW(out_of_range("bitset"));
-
- return _Unchecked_set(__pos);
- }
-
- bitset<_Nb>& set(size_t __pos, int __val) {
+ bitset<_Nb>& set(size_t __pos, bool __val = true) {
if (__pos >= _Nb)
__STL_THROW(out_of_range("bitset"));
// Types:
typedef _CharT char_type;
typedef _Traits traits_type;
+#ifdef _GLIBCPP_RESOLVE_LIB_DEFECTS
+// 251. basic_stringbuf missing allocator_type
+ typedef _Alloc allocator_type;
+#endif
typedef typename traits_type::int_type int_type;
typedef typename traits_type::pos_type pos_type;
typedef typename traits_type::off_type off_type;
// Types:
typedef _CharT char_type;
typedef _Traits traits_type;
+#ifdef _GLIBCPP_RESOLVE_LIB_DEFECTS
+// 251. basic_stringbuf missing allocator_type
+ typedef _Alloc allocator_type;
+#endif
typedef typename traits_type::int_type int_type;
typedef typename traits_type::pos_type pos_type;
typedef typename traits_type::off_type off_type;
// Types:
typedef _CharT char_type;
typedef _Traits traits_type;
+#ifdef _GLIBCPP_RESOLVE_LIB_DEFECTS
+// 251. basic_stringbuf missing allocator_type
+ typedef _Alloc allocator_type;
+#endif
typedef typename traits_type::int_type int_type;
typedef typename traits_type::pos_type pos_type;
typedef typename traits_type::off_type off_type;
// Types:
typedef _CharT char_type;
typedef _Traits traits_type;
+#ifdef _GLIBCPP_RESOLVE_LIB_DEFECTS
+// 251. basic_stringbuf missing allocator_type
+ typedef _Alloc allocator_type;
+#endif
typedef typename traits_type::int_type int_type;
typedef typename traits_type::pos_type pos_type;
typedef typename traits_type::off_type off_type;
#endif
#endif // _CPP_SSTREAM
-