+2002-04-03 Benjamin Kosnik <bkoz@redhat.com>
+
+ As per DR 184, libstdc++/3139
+ * include/std/std_limits.h (__glibcpp_bool_digits): Change to 1.
+ (numeric_limits<bool>::is_iec559): False.
+ (numeric_limits<bool>::is_modulo): False.
+
+ * testsuite/27_io/ios_init.cc: Add instantiations.
+
2002-04-02 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/5268
// bool-specific hooks:
// __glibcpp_bool_digits __glibcpp_int_traps __glibcpp_long_traps
-// This is actually CHAR_BITS because the new ABI says a bool
-// is one (1) byte wide.
-
#ifndef __glibcpp_bool_digits
-#define __glibcpp_bool_digits __glibcpp_char_bits
+#define __glibcpp_bool_digits 1
#endif
// char.
static bool denorm_min() throw()
{ return false; }
- 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;
// It is not clear what it means for a boolean type to trap.
// This is a DR on the LWG issue list. Here, I use integer
template
unsigned short
std::basic_string<unsigned short>::_Rep::_S_terminal;
+
+template
+ std::basic_string<unsigned char>::size_type
+ std::basic_string<unsigned char>::_Rep::_S_max_size;
+
+template
+ unsigned char
+ std::basic_string<unsigned char>::_Rep::_S_terminal;
#endif
int main()