diff options
author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-23 23:35:18 +0000 |
---|---|---|
committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-23 23:35:18 +0000 |
commit | cfbeb4aa619f770752817037daf35a27c4fff3ef (patch) | |
tree | f3277cb4b8ed12d01d17416518da07422b52549f /libstdc++-v3 | |
parent | f6b7ba2b65b368412f985d9e5fef16185bf7a249 (diff) | |
download | gcc-cfbeb4aa619f770752817037daf35a27c4fff3ef.tar.gz |
2002-01-23 Matt Kraai <kraai@alumni.cmu.edu>
* include/bits/locale_facets.tcc: Remove old comments.
2002-01-23 Andreas Tobler <toa@pop.agri.ch>
* include/bits/locale_facets.tcc (__convert_to_v): Change template
parameter to _Tv.
(__convert_from_v): Same.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49156 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 10 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/locale_facets.tcc | 16 |
2 files changed, 16 insertions, 10 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1399d3f8177..57ffe1088bb 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,13 @@ +2002-01-23 Matt Kraai <kraai@alumni.cmu.edu> + + * include/bits/locale_facets.tcc: Remove old comments. + +2002-01-23 Andreas Tobler <toa@pop.agri.ch> + + * include/bits/locale_facets.tcc (__convert_to_v): Change template + parameter to _Tv. + (__convert_from_v): Same. + 2002-01-23 Benjamin Kosnik <bkoz@redhat.com> * include/bits/locale_facets.h (num_get::_M_extract_int): Change diff --git a/libstdc++-v3/include/bits/locale_facets.tcc b/libstdc++-v3/include/bits/locale_facets.tcc index b466a7d8b8d..9cdcf019e40 100644 --- a/libstdc++-v3/include/bits/locale_facets.tcc +++ b/libstdc++-v3/include/bits/locale_facets.tcc @@ -378,10 +378,6 @@ namespace std // refer to a derived class. string __xtrc; int __base; - // According to 18.2.1.2.9, digits10 is "Number of base 10 digits - // that can be represented without change" so we have to add 1 to it - // in order to obtain the max number of digits. The same for the - // other do_get for integral types below. __beg = _M_extract_int(__beg, __end, __io, __err, __xtrc, __base); unsigned long __ul; @@ -1849,18 +1845,18 @@ namespace std return static_cast<long>(__val); } - // Convert string to numeric value of type T and store results. + // Convert string to numeric value of type _Tv and store results. // NB: This is specialized for all required types, there is no // generic definition. - template<typename _T> + template<typename _Tv> void - __convert_to_v(const char* __in, _T& __out, ios_base::iostate& __err, + __convert_to_v(const char* __in, _Tv& __out, ios_base::iostate& __err, const __c_locale& __cloc, int __base = 10); - // Convert numeric value of type T to string and return length of string. - template<typename _T> + // Convert numeric value of type _Tv to string and return length of string. + template<typename _Tv> int - __convert_from_v(char* __out, const char* __fmt, _T __v, + __convert_from_v(char* __out, const char* __fmt, _Tv __v, const __c_locale&, int __prec = -1) { int __ret; |