Commit aac0eb5d by Benjamin Kosnik

[multiple changes]


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.

From-SVN: r49156
parent 03984308
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> 2002-01-23 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.h (num_get::_M_extract_int): Change * include/bits/locale_facets.h (num_get::_M_extract_int): Change
......
...@@ -378,10 +378,6 @@ namespace std ...@@ -378,10 +378,6 @@ namespace std
// refer to a derived class. // refer to a derived class.
string __xtrc; string __xtrc;
int __base; 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); __beg = _M_extract_int(__beg, __end, __io, __err, __xtrc, __base);
unsigned long __ul; unsigned long __ul;
...@@ -1849,18 +1845,18 @@ namespace std ...@@ -1849,18 +1845,18 @@ namespace std
return static_cast<long>(__val); 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 // NB: This is specialized for all required types, there is no
// generic definition. // generic definition.
template<typename _T> template<typename _Tv>
void 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); const __c_locale& __cloc, int __base = 10);
// Convert numeric value of type T to string and return length of string. // Convert numeric value of type _Tv to string and return length of string.
template<typename _T> template<typename _Tv>
int 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) const __c_locale&, int __prec = -1)
{ {
int __ret; int __ret;
......
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