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

[any.class] Rephrase small-object optimization #1994

Merged
merged 1 commit into from Apr 2, 2018

Conversation

jensmaurer
Copy link
Member

Fixes #1360.

@@ -5111,12 +5111,13 @@
The non-member \tcode{any_cast} functions provide type-safe access to the contained value.

\pnum
Implementations should avoid the use of dynamically allocated memory for a small contained value.
Implementations should avoid the use of dynamically allocated memory for a small contained value;
any such small-object optimization shall only be applied to types \tcode{T} for which
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A connective such as "however" would make more sense than a semicolon here, as we are partially retracting the advice given in the previous clause.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@jensmaurer jensmaurer added the after-motions Pull request is to be applied after the pending edits from WG21 straw polls have been applied. label Apr 2, 2018
@zygoloid zygoloid merged commit 17191ec into cplusplus:master Apr 2, 2018
@jensmaurer jensmaurer deleted the b52 branch April 3, 2018 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
after-motions Pull request is to be applied after the pending edits from WG21 straw polls have been applied.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants