From 180d99281d9b479dd36396df6fae43ee3acf6824 Mon Sep 17 00:00:00 2001 From: Karl Wiberg Date: Thu, 15 Mar 2018 11:21:05 +0100 Subject: [PATCH] Style guide: State what version of C++ we should use Bug: none Notry: true Change-Id: Id2a6d728479f4aeb5beff3fd594d95d565500bb6 Reviewed-on: https://webrtc-review.googlesource.com/61423 Commit-Queue: Karl Wiberg Reviewed-by: Tomas Gunnarsson Cr-Commit-Position: refs/heads/master@{#22440} --- style-guide.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/style-guide.md b/style-guide.md index 4189e55c68..f8565999d6 100644 --- a/style-guide.md +++ b/style-guide.md @@ -20,6 +20,17 @@ both. [chr-style]: https://chromium.googlesource.com/chromium/src/+/HEAD/styleguide/c++/c++.md [goog-style]: https://google.github.io/styleguide/cppguide.html +### C++ version + +WebRTC is written in C++11, but with some restrictions: + +* We only allow the subset of C++11 (language and library) in the + “allowed” section of [this Chromium page][chromium-cpp11]. +* We only allow the subset of C++11 that is also valid C++14; + otherwise, users would not be able to compile WebRTC in C++14 mode. + +[chromium-cpp11]: https://chromium-cpp.appspot.com/ + ### `.h` and `.cc` files come in pairs `.h` and `.cc` files should come in pairs, with the same name (except