Commit a9bb75a7 by Benjamin Kosnik Committed by Benjamin Kosnik

As per DR 184, libstdc++/3139


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.

From-SVN: r51838
parent 823fbbce
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> 2002-04-02 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/5268 libstdc++/5268
......
...@@ -233,11 +233,8 @@ ...@@ -233,11 +233,8 @@
// bool-specific hooks: // bool-specific hooks:
// __glibcpp_bool_digits __glibcpp_int_traps __glibcpp_long_traps // __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 #ifndef __glibcpp_bool_digits
#define __glibcpp_bool_digits __glibcpp_char_bits #define __glibcpp_bool_digits 1
#endif #endif
// char. // char.
...@@ -996,9 +993,9 @@ namespace std ...@@ -996,9 +993,9 @@ namespace std
static bool denorm_min() throw() static bool denorm_min() throw()
{ return false; } { return false; }
static const bool is_iec559 = true; static const bool is_iec559 = false;
static const bool is_bounded = true; 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. // 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 // This is a DR on the LWG issue list. Here, I use integer
......
...@@ -215,6 +215,14 @@ template ...@@ -215,6 +215,14 @@ template
template template
unsigned short unsigned short
std::basic_string<unsigned short>::_Rep::_S_terminal; 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 #endif
int main() int main()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment