[gjs: 9/11] doc: Mention C++14 instead of C++11



commit 1e8f12a2ee58a117d785ea97ccab7ff5d20f6e55
Author: Philip Chimento <philip chimento gmail com>
Date:   Sun Oct 21 18:16:08 2018 +0100

    doc: Mention C++14 instead of C++11
    
    Since switching to SpiderMonkey 60, we require C++14 instead of C++11.
    Mention this in the coding style guide.

 doc/CPP_Style_Guide.md | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/doc/CPP_Style_Guide.md b/doc/CPP_Style_Guide.md
index f317a06e..59731670 100644
--- a/doc/CPP_Style_Guide.md
+++ b/doc/CPP_Style_Guide.md
@@ -46,12 +46,12 @@ portable C++ code as the implementation language of choice.
 
 ### C++ Standard Versions ###
 
-GJS is currently written using C++11 conforming code, although we
+GJS is currently written using C++14 conforming code, although we
 restrict ourselves to features which are available in the major
 toolchains.
 
 Regardless of the supported features, code is expected to (when
-reasonable) be standard, portable, and modern C++11 code.
+reasonable) be standard, portable, and modern C++14 code.
 We avoid unnecessary vendor-specific extensions, etc., including
 `g_autoptr()` and friends.
 
@@ -65,9 +65,9 @@ and friends, for their type safety and memory management.
 There are some exceptions such as the standard I/O streams library which
 is avoided, and use in space-constrained situations.
 
-### Supported C++11 Language and Library Features ###
+### Supported C++14 Language and Library Features ###
 
-While GJS and SpiderMonkey use C++11, not all features are available in
+While GJS and SpiderMonkey use C++14, not all features are available in
 all of the toolchains which we support.
 A good rule of thumb is to check whether SpiderMonkey uses the feature.
 If so, it's okay to use in GJS.
@@ -289,8 +289,8 @@ This can lead to problems at link time.
 
 #### Use `auto` Type Deduction to Make Code More Readable ####
 
-Some are advocating a policy of "almost always `auto`" in C++11, but GJS
-uses a more moderate stance.
+Some are advocating a policy of "almost always `auto`" in C++11 and
+later, but GJS uses a more moderate stance.
 Use `auto` only if it makes the code more readable or easier to
 maintain.
 Don't "almost always" use `auto`, but do use `auto` with initializers


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]