summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEvan Welsh <noreply@evanwelsh.com>2020-07-04 21:50:40 -0500
committerPhilip Chimento <philip.chimento@gmail.com>2020-07-27 21:30:35 -0700
commit9731c3694542e1278594db65bbd1ef0044c11c2f (patch)
tree7762a9f05ed780fa2c536b2b5481c0da5913bac3 /doc
parent07eadd76a3d89598797ac38e365b57715c6e0c1a (diff)
downloadgjs-9731c3694542e1278594db65bbd1ef0044c11c2f.tar.gz
build: Switch to C++17
This is a requirement of SpiderMonkey 78. See: GNOME/gjs#329
Diffstat (limited to 'doc')
-rw-r--r--doc/CPP_Style_Guide.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/CPP_Style_Guide.md b/doc/CPP_Style_Guide.md
index 5d75c420..beac17d5 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++14 conforming code, although we
+GJS is currently written using C++17 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++14 code.
+reasonable) be standard, portable, and modern C++17 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++14 Language and Library Features ###
+### Supported C++17 Language and Library Features ###
-While GJS and SpiderMonkey use C++14, not all features are available in
+While GJS and SpiderMonkey use C++17, 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.