From 0e418df26c45af6a62d2c3e7b05f4496058d5e86 Mon Sep 17 00:00:00 2001 From: dcheng Date: Fri, 26 Sep 2014 16:25:04 -0700 Subject: Move explicit conversion operators to the banned section. Unfortunately, they are broken as implemented in MSVS 2013. Review URL: https://codereview.chromium.org/609963004 Cr-Commit-Position: refs/heads/master@{#297066} --- styleguide/c++/c++11.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'styleguide/c++/c++11.html') diff --git a/styleguide/c++/c++11.html b/styleguide/c++/c++11.html index 80e99d8..8cfc013 100644 --- a/styleguide/c++/c++11.html +++ b/styleguide/c++/c++11.html @@ -185,12 +185,22 @@ codebase. constexpr Compile-time constant expressions TODO: documentation link -Doesn't work in MSVS2013. Reevalute once it does.Doesn't work in MSVS2013. Reevalute once it does. Google Style Guide on constexpr +Explicit Conversion Operators +explicit operator type() { +
  // code
}
+Allows conversion operators that cannot be implicitly invoked + +explicit specifier +Doesn't work in MSVS2013. Reevaluate once it does. Discussion thread + + + Function Local Variable __func__ Provides a local variable of the name of the enclosing @@ -346,16 +356,6 @@ std::exception -Explicit Conversion Operators -explicit operator type() { -
  // code
}
-Allows conversion operators that cannot be implicitly invoked - -explicit specifier - - - - Function Suppression Function(arguments) = delete; Suppresses the implementation of a function, especially a -- cgit v1.1