From 28cd164ac765133b760668972e91e1f656641329 Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Fri, 24 Dec 2021 09:55:22 +0100 Subject: [PATCH] Update style guide about C++17 Bug: None Change-Id: Ic1ec302d317232291a3ec54fa7a6fa28c8635c1d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/242960 Reviewed-by: Danil Chapovalov Commit-Queue: Mirko Bonadei Cr-Commit-Position: refs/heads/main@{#35589} --- g3doc/style-guide.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/g3doc/style-guide.md b/g3doc/style-guide.md index 4e6e9a14fc..63ca7d9a5c 100644 --- a/g3doc/style-guide.md +++ b/g3doc/style-guide.md @@ -25,12 +25,12 @@ both. ### C++ version -WebRTC is written in C++14, but with some restrictions: +WebRTC is written in C++17, but with some restrictions: -* We only allow the subset of C++14 (language and library) that is not banned by +* We only allow the subset of C++17 (language and library) that is not banned by Chromium; see the [list of banned C++ features in Chromium][chr-style-cpp]. -* We only allow the subset of C++14 that is also valid C++17; otherwise, users - would not be able to compile WebRTC in C++17 mode. +* We only allow the subset of C++17 that is also valid C++20; otherwise, users + would not be able to compile WebRTC in C++20 mode. [chr-style-cpp]: https://chromium.googlesource.com/chromium/src/+/main/styleguide/c++/c++11.md