Title
Effects of money_base::space and money_base::none on money_get
Status
c++11
Section
[locale.money.get.virtuals]
Submitter
Martin Sebor

Created on 2008-05-17.00:00:00 last changed 162 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

I propose to change the text to make it clear that the first interpretation is intended, that is, to make following change to [locale.money.get.virtuals], p. 2:

When money_base::space or money_base::none appears as the last element in the format pattern, except at the end, optional white space (as recognized by ct.is) is consumed after any required space. no white space is consumed. Otherwise, where money_base::space appears in any of the initial elements of the format pattern, at least one white space character is required. Where money_base::none appears in any of the initial elements of the format pattern, white space is allowed but not required. If (str.flags() & str.showbase) is false, ...

Date: 2010-10-21.18:28:33

[ 2009-10 Santa Cruz: ]

Move to Ready.

Date: 2010-10-21.18:28:33

[ 2009-07 Frankfurt: ]

There is a noun missing from the proposed resolution. It's not clear that the last sentence would be helpful, even if the word were not missing:

In either case, any required MISSINGWORD followed by all optional whitespace (as recognized by ct.is()) is consumed.

Strike this sentence and move to Review.

Howard: done.
Date: 2010-10-21.18:28:33

[ San Francisco: ]

Martin will revise the proposed resolution.

Date: 2008-05-17.00:00:00

Duplicate: 670

In paragraph 2, [locale.money.get.virtuals] specifies the following:

Where space or none appears in the format pattern, except at the end, optional white space (as recognized by ct.is) is consumed after any required space.

This requirement can be (and has been) interpreted two mutually exclusive ways by different readers. One possible interpretation is that:

  1. where money_base::space appears in the format, at least one space is required, and
  2. where money_base::none appears in the format, space is allowed but not required.

The other is that:

where either money_base::space or money_base::none appears in the format, white space is optional.

History
Date User Action Args
2011-08-23 20:07:26adminsetstatus: wp -> c++11
2010-10-21 18:28:33adminsetmessages: + msg4001
2010-10-21 18:28:33adminsetmessages: + msg4000
2010-10-21 18:28:33adminsetmessages: + msg3999
2010-10-21 18:28:33adminsetmessages: + msg3998
2008-05-17 00:00:00admincreate