This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of TC1 status.

148. Functions in the example facet BoolNames should be const

Section: 25.4.8 [facets.examples] Status: TC1 Submitter: Jeremy Siek Opened: 1999-06-03 Last modified: 2017-02-03

Priority: Not Prioritized

View all other issues in [facets.examples].

View all issues with TC1 status.


In 25.4.8 [facets.examples] paragraph 13, the do_truename() and do_falsename() functions in the example facet BoolNames should be const. The functions they are overriding in numpunct_byname<char> are const.

Proposed resolution:

In 25.4.8 [facets.examples] paragraph 13, insert "const" in two places:

string do_truename() const { return "Oui Oui!"; }
string do_falsename() const { return "Mais Non!"; }