Title
regex_traits::lookup_classname specification unclear
Status
c++14
Section
[re.traits]
Submitter
Jonathan Wakely

Created on 2013-07-02.00:00:00 last changed 131 months ago

Messages

Date: 2014-01-14.19:49:34

Proposed resolution:

This wording is relative to N3691.

  1. Edit [re.traits] p9:

    template <class ForwardIterator>
      char_class_type lookup_classname(
        ForwardIterator first, ForwardIterator last, bool icase = false) const;
    

    -9- Returns: an unspecified value that represents the character classification named by the character sequence designated by the iterator range [first,last). If the parameter icase is true then the returned mask identifies the character classification without regard to the case of the characters being matched, otherwise it does honor the case of the characters being matched. The value returned shall be independent of the case of the characters in the character sequence. If the name is not recognized then returns a value that compares equal to 0char_class_type().

Date: 2014-01-14.19:49:34

[ 2013-09 Chicago ]

Stefanus: Resolution looks good, doesn't seem to need fixing anywhere else from a quick look through the draft.

Any objection to Ready?

No objection.

Action: Move to Ready.

Date: 2013-07-02.00:00:00

[re.traits] p9 says that regex_traits::lookup_classname should return a value that compares equal to 0, but there is no requirement that a bitmask type is equality comparable with 0, e.g. [bitmask.types] says bitmask types can be implemented using std::bitset.

Either there should be an additional requirement on the type or the function definition should be fixed.

History
Date User Action Args
2014-02-27 17:03:20adminsetstatus: wp -> c++14
2014-02-20 13:52:38adminsetstatus: voting -> wp
2014-02-12 14:19:44adminsetstatus: ready -> voting
2014-01-14 19:49:34adminsetmessages: + msg6796
2014-01-14 19:49:34adminsetstatus: new -> ready
2013-08-18 18:05:25adminsetmessages: + msg6550
2013-07-02 00:00:00admincreate