diff options
author | andersr <andersr@opera.com> | 2014-11-07 09:02:52 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-07 17:03:18 +0000 |
commit | 127772eed524dac861781b03ff22bc9d9a408257 (patch) | |
tree | 183f39a969ced27e8536add485f01853182ef2a2 /styleguide | |
parent | 11b132ef3dcc4d224989ec42effc2ad136a381fd (diff) | |
download | chromium_src-127772eed524dac861781b03ff22bc9d9a408257.zip chromium_src-127772eed524dac861781b03ff22bc9d9a408257.tar.gz chromium_src-127772eed524dac861781b03ff22bc9d9a408257.tar.bz2 |
Allow C++11 Delegated Constructors.
An as-small-as-possible change has been made to JSONReader to test
this feature.
R=jamesr@chromium.org
Review URL: https://codereview.chromium.org/685603005
Cr-Commit-Position: refs/heads/master@{#303245}
Diffstat (limited to 'styleguide')
-rw-r--r-- | styleguide/c++/c++11.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/styleguide/c++/c++11.html b/styleguide/c++/c++11.html index 41671bd..b7998f9 100644 --- a/styleguide/c++/c++11.html +++ b/styleguide/c++/c++11.html @@ -105,6 +105,16 @@ What's the point in defaulting functions in C++11?</a></td> </tr> <tr> +<td>Delegated Constructors</td> +<td><code>Class() : Class(0) {}</code><br /> +<code>Class(<i>type</i> <i>var</i>) : Class(<i>var</i>, 0)</code></td> +<td>Allow overloaded constructors to use common initialization code</td> +<td><a href="https://www.ibm.com/developerworks/community/blogs/5894415f-be62-4bc0-81c5-3956e82276f3/entry/introduction_to_the_c_11_feature_delegating_constructors?lang=en"> +Introduction to the C++11 feature: delegating constructors</a></td> +<td><a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/0zVA8Ctx3Xo">Discussion thread</a></td> +</tr> + +<tr> <td>Enumerated Type Classes and Enum Bases</td> <td><code>enum class <i>classname</i></code><br> <code>enum class <i>classname</i> : <i>base-type</i></code><br> @@ -403,16 +413,6 @@ Default Template Arguments for Function Templates</a></td> </tr> <tr> -<td>Delegated Constructors</td> -<td><code>Class() : Class(0) {}</code><br /> -<code>Class(<i>type</i> <i>var</i>) : Class(<i>var</i>, 0)</code></td> -<td>Allow overloaded constructors to use common initialization code</td> -<td><a href="https://www.ibm.com/developerworks/community/blogs/5894415f-be62-4bc0-81c5-3956e82276f3/entry/introduction_to_the_c_11_feature_delegating_constructors?lang=en"> -Introduction to the C++11 feature: delegating constructors</a></td> -<td><a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/0zVA8Ctx3Xo">Discussion thread</a></td> -</tr> - -<tr> <td>Exception Features</td> <td><code>noexcept</code>, <code>exception_ptr</code>, <code>current_exception()</code>, <code>rethrow_exception</code>, |