Created on 2012-12-30.00:00:00 last changed 131 months ago
Proposed resolution:
In [locale.stdcvt] paragraph 2, Header codecvt synopsis:
template<class Elem, unsigned long Maxcode = 0x10ffff, codecvt_mode Mode = (codecvt_mode)0> class codecvt_utf8 : public codecvt<Elem, char, mbstate_t> {// unspecifiedpublic: explicit codecvt_utf8(size_t refs = 0); ~codecvt_utf8(); }; template<class Elem, unsigned long Maxcode = 0x10ffff, codecvt_mode Mode = (codecvt_mode)0> class codecvt_utf16 : public codecvt<Elem, char, mbstate_t> {// unspecifiedpublic: explicit codecvt_utf16(size_t refs = 0); ~codecvt_utf16(); }; template<class Elem, unsigned long Maxcode = 0x10ffff, codecvt_mode Mode = (codecvt_mode)0> class codecvt_utf8_utf16 : public codecvt<Elem, char, mbstate_t> {// unspecifiedpublic: explicit codecvt_utf8_utf16(size_t refs = 0); ~codecvt_utf8_utf16(); };
[ 2013-04-18, Bristol ]
[ 2013-03-15 Issues Teleconference ]
Moved to Review.
There was concern about the unspecified semantics - but that matches what is done in codecvt.
Jonathan: Should these constructor/destructors be public? Proposed wording is private. Base class constructor is public.
Howard noted that other facets do not have specified constructors.
Alisdair noted that this whole section was new in C++11.
Howard suggested looking at section [locale.facet]p2/p3 for more info.
The only specification for the non-inherited members of classes codecvt_utf8, codecvt_utf16, and codecvt_utf8_utf16 is a comment line in the synopsis that says // unspecified. There is no further indication of functionality, so a user does not know if one of these classes can be constructed or destroyed.
The proposed resolution adds a constructor that mimics the class codecvt constructor, and also adds a destructor. Following the practice of class codecvt, the semantics are not specified.
The only existing implementation I could find was libc++, and it does supply the proposed constructor and destructor for each of the three classes.
History | |||
---|---|---|---|
Date | User | Action | Args |
2014-02-20 13:20:35 | admin | set | status: wp -> c++14 |
2013-04-25 19:07:07 | admin | set | status: voting -> wp |
2013-04-19 21:44:50 | admin | set | status: ready -> voting |
2013-04-18 22:58:13 | admin | set | messages: + msg6466 |
2013-04-18 22:58:13 | admin | set | status: review -> ready |
2013-03-18 14:33:00 | admin | set | messages: + msg6438 |
2013-03-18 13:02:36 | admin | set | status: new -> review |
2013-01-11 19:35:06 | admin | set | messages: + msg6309 |
2012-12-30 00:00:00 | admin | create |