Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial(?) changes in [conversions] #26

Merged
merged 6 commits into from Oct 18, 2012
Merged

Conversation

jwakely
Copy link
Member

@jwakely jwakely commented Aug 3, 2012

(Originally submitted as pull request #22, now resubmitted from a separate branch so I can push other changes without mixing them up.)

The types byte_string and wide_string should be in a fixed-width typeface.

Codecvt is a class not a template, so Codecvt<Elem, char, std::mbstate_t> is ill-formed, it should be just Codecvt (same problem in [conversions.string] and [conversions.buffer].)

The example in [conversions.string] supposes the existence of some facet called codecvt_utf8, which is in the standard library now so there's no need to word it that way. Just use std::codecvt_utf8.

http://cplusplus.github.com/LWG/lwg-defects.html#991 changed the string types to use allocators, but didn't update the definitions so they don't match the class synopsis (are those definitions even necessary? They don't add anything that isn't already defined in the class definition in paragraph 2).

Re-indent an example in [conversions.buffer]

There are also lots of redundant std:: qualifications in that clause, which I didn't remove to keep the patch simpler.

If any of these doesn't qualify as editorial changes let me know and I'll request LWG issues and send a new pull request without those parts.

sdutoit pushed a commit that referenced this pull request Oct 18, 2012
[conversions] Fix formatting issues, extraneous template arguments to the class Codecvt, reference to codecvt_utf8 as a user type (when it's in fact a standard type) in non-normative note and typedef descriptions to match synopsis. Thanks to Jonathan Wakely!
@sdutoit sdutoit merged commit 7a8904d into cplusplus:master Oct 18, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants