From d9a02e76127634286ff0c760f87db260b367492a Mon Sep 17 00:00:00 2001 From: danakj Date: Fri, 26 Sep 2014 13:03:04 -0700 Subject: styleguide: Move Rvalue References to the Blacklist with Exceptions. The discussion around Rvalue references has been that we should ban their use for now, but come back to it later. So that is what this does. One exceptional case that was agreed upon without dissent was to allow move semantics in scoped_ptr to allow use of scoped_ptr cleaner throughout the codebase, without leaking the requirement to understand Rvalue references outside of the scoped_ptr implementation. R=jamesr@chromium.org, thakis@chromium.org Review URL: https://codereview.chromium.org/607773002 Cr-Commit-Position: refs/heads/master@{#297016} --- styleguide/c++/c++11.html | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) (limited to 'styleguide/c++/c++11.html') diff --git a/styleguide/c++/c++11.html b/styleguide/c++/c++11.html index 9659c9b..45559dd8 100644 --- a/styleguide/c++/c++11.html +++ b/styleguide/c++/c++11.html @@ -163,6 +163,28 @@ Are Variadic macros nonstandard?

This section lists features that are not allowed to be used yet. + + + + + + + + + + + + + + + + + + + + +
Feature or LibrarySnippetDescriptionDocumentation LinkNotes
Rvalue References (and Move Semantics)T(T&& t) and T& operator=(T&& t)Reference that only binds to a temporary objectTODO: documentation linkTo be revisited in the future. Allowed in exceptional cases where approved by the OWNERS of src/styleguide/c++/.
+

C++11 Banned Features

This section will list C++11 features that are not allowed in the Chromium @@ -414,14 +436,6 @@ sequences, easing parsing in regex expressions, for example -Rvalue References (and Move Semantics) -T(T&& t) and T& operator=(T&& t) -Reference that only binds to a temporary object -TODO: documentation link - - - - Union Class Members union name { class var} Allows class type members -- cgit v1.1