summaryrefslogtreecommitdiffstats
path: root/styleguide
diff options
context:
space:
mode:
authormdempsky <mdempsky@chromium.org>2014-10-30 16:14:52 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-30 23:15:09 +0000
commit33bafda741776ba2595c4adb56a4851a51156339 (patch)
tree2c5482839b68a382ef92cd38f0dfdc885bd6a5ea /styleguide
parent711e56e47ec65177f70405c3e4e843cc44b78745 (diff)
downloadchromium_src-33bafda741776ba2595c4adb56a4851a51156339.zip
chromium_src-33bafda741776ba2595c4adb56a4851a51156339.tar.gz
chromium_src-33bafda741776ba2595c4adb56a4851a51156339.tar.bz2
styleguide: ban inherited constructors
Review URL: https://codereview.chromium.org/691803004 Cr-Commit-Position: refs/heads/master@{#302188}
Diffstat (limited to 'styleguide')
-rw-r--r--styleguide/c++/c++11.html13
1 files changed, 12 insertions, 1 deletions
diff --git a/styleguide/c++/c++11.html b/styleguide/c++/c++11.html
index c0274d9..6d870fb 100644
--- a/styleguide/c++/c++11.html
+++ b/styleguide/c++/c++11.html
@@ -197,7 +197,7 @@ Are Variadic macros nonstandard?</a></td>
<h3 id="blacklist_banned">C++11 Banned Features</h3>
-<p>This section will list C++11 features that are not allowed in the Chromium
+<p>This section lists C++11 features that are not allowed in the Chromium
codebase.
</p>
@@ -243,6 +243,17 @@ The __func__ Predeclared Identifier is Coming to C++</a></td>
</tr>
<tr>
+<td>Inherited Constructors</td>
+<td><code>class Derived : Base {
+<br />&nbsp;&nbsp;using Base::Base;
+<br />};</code></td>
+<td>Allow derived classes to inherit constructors from base classes</td>
+<td><a href="http://en.cppreference.com/w/cpp/language/using_declaration">Using-declaration</a></td>
+<td>Doesn't work in MSVS2013. Reevaluate once it does. <a
+href="https://groups.google.com/a/chromium.org/d/msg/chromium-dev/BULzgIKZ-Ao/PLO7_GoVNvYJ">Discussion thread</a></td>
+</tr>
+
+<tr>
<td><code>long long</code> Type</td>
<td><code>long long <i>var</i>= <i>value</i>;</code></td>
<td>An integer of at least 64 bits</td>