From 4f2d41011677efe8bae6b1139a49baea5ce15bf3 Mon Sep 17 00:00:00 2001 From: mdempsky Date: Mon, 20 Oct 2014 10:31:27 -0700 Subject: styleguide: Allow C++11 "enum class" Review URL: https://codereview.chromium.org/667483003 Cr-Commit-Position: refs/heads/master@{#300291} --- styleguide/c++/c++11.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'styleguide/c++/c++11.html') diff --git a/styleguide/c++/c++11.html b/styleguide/c++/c++11.html index d579de0..1cbe001 100644 --- a/styleguide/c++/c++11.html +++ b/styleguide/c++/c++11.html @@ -84,6 +84,18 @@ Style Guide on auto. +enum-class +Enum classes are still enums and follow enum naming rules +(which means SHOUTY_CASE in the current style guide). +Discussion thread + + + Final Specifier final Indicates that a class or function is final and cannot be overridden @@ -334,16 +346,6 @@ Introduction to the C++11 feature: delegating constructors -Enumerated Type Classes -enum class classname -Provide enums as full classes, with no implicit -conversion to booleans or integers - -enum-class -Discussion thread - - - Exception Features noexcept, exception_ptr, current_exception(), rethrow_exception, -- cgit v1.1