diff options
| author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-04-04 05:32:59 +0000 |
|---|---|---|
| committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-04-04 05:32:59 +0000 |
| commit | 6d27b6f600677a10a6e7d7d86902baca90a6a28e (patch) | |
| tree | 52c00996258987cfc426305e87acfb4a9e4d88f5 /libstdc++-v3/include/std/std_limits.h | |
| parent | a584fe8afeb598d1c5dc1dbf021cdb05123f2f45 (diff) | |
| download | ppe42-gcc-6d27b6f600677a10a6e7d7d86902baca90a6a28e.tar.gz ppe42-gcc-6d27b6f600677a10a6e7d7d86902baca90a6a28e.zip | |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51838 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/std/std_limits.h')
| -rw-r--r-- | libstdc++-v3/include/std/std_limits.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libstdc++-v3/include/std/std_limits.h b/libstdc++-v3/include/std/std_limits.h index d2b57e39cc7..64d8a9bb59e 100644 --- a/libstdc++-v3/include/std/std_limits.h +++ b/libstdc++-v3/include/std/std_limits.h @@ -233,11 +233,8 @@ // 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. @@ -996,9 +993,9 @@ namespace std 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 |

