2702. num_put::do_put(..., bool) performs ill-formed do_put call

Section: 28.3.4.3.3.3 [facet.num.put.virtuals] Status: New Submitter: Hubert Tong Opened: 2016-05-07 Last modified: 2016-05-22

Priority: 3

View other active issues in [facet.num.put.virtuals].

View all other issues in [facet.num.put.virtuals].

View all issues with New status.

Discussion:

The call to do_put(out, str, fill, (int)val) in N4582 subclause 28.3.4.3.3.3 [facet.num.put.virtuals] paragraph 6 cannot select a best viable function in overload resolution given the overloads listed for do_put in 28.3.4.3.3 [locale.nm.put].

There is implementation divergence:

It appears that the resolution to DR 359 attempted a fix; however, the relevant portion of the change was not applied to the WP.

Proposed resolution: