Title
do_put() has apparently unused fill argument
Status
tc1
Section
[locale.time.put.virtuals]
Submitter
Angelika Langer

Created on 1999-07-23.00:00:00 last changed 172 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

The LWG felt that while the normative text was correct, users need some guidance on what to pass for the fill argument since the standard doesn't say how it's used.

Date: 2010-10-21.18:28:33

Proposed resolution:

Add the following note after [locale.time.put.virtuals] paragraph 2:

[Note: the fill argument may be used in the implementation-defined formats, or by derivations. A space character is a reasonable default for this argument. --end Note]

Date: 1999-07-23.00:00:00

In [locale.time.put.virtuals] the do_put() function is specified as taking a fill character as an argument, but the description of the function does not say whether the character is used at all and, if so, in which way. The same holds for any format control parameters that are accessible through the ios_base& argument, such as the adjustment or the field width. Is strftime() supposed to use the fill character in any way? In any case, the specification of time_put.do_put() looks inconsistent to me.

Is the signature of do_put() wrong, or is the effects clause incomplete?

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg1725
2010-10-21 18:28:33adminsetmessages: + msg1724
1999-07-23 00:00:00admincreate