diff options
-rw-r--r-- | base/json/json_reader.cc | 2 | ||||
-rw-r--r-- | styleguide/c++/c++11.html | 20 |
2 files changed, 11 insertions, 11 deletions
diff --git a/base/json/json_reader.cc b/base/json/json_reader.cc index ad5a9d5..e17d450e 100644 --- a/base/json/json_reader.cc +++ b/base/json/json_reader.cc @@ -31,7 +31,7 @@ const char JSONReader::kUnquotedDictionaryKey[] = "Dictionary keys must be quoted."; JSONReader::JSONReader() - : parser_(new internal::JSONParser(JSON_PARSE_RFC)) { + : JSONReader(JSON_PARSE_RFC) { } JSONReader::JSONReader(int options) 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>, |