diff options
author | Patryk Obara <dreamer.tan@gmail.com> | 2020-05-09 22:07:02 +0300 |
---|---|---|
committer | Patryk Obara <patryk.obara@gmail.com> | 2020-05-11 02:18:21 +0300 |
commit | 064108c9c469b15b0ae0f5b958314ebd4d354019 (patch) | |
tree | bc0f756be1ad96fc4eed9c9bb02a9440f1534b16 /CONTRIBUTING.md | |
parent | 2463626c965cf32970b00c7126c5509c52753d95 (diff) |
Switch to using C++14
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r-- | CONTRIBUTING.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dfbbc7806..1d8126ee1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -93,15 +93,15 @@ Do not do mass reformating or renaming of existing code. ### Language -We use C-like C++11. To clarify: +We use C-like C++14. To clarify: - Avoid designing your code in complex object-oriented style. This does not mean "don't use classes", it means "don't use stuff like multiple inheritance, overblown class hierarchies, operator overloading, iostreams for stdout/stderr, etc, etc". -- C++11 has rich STL library, use it (responsibly - sometimes using +- C++14 has rich STL library, use it (responsibly - sometimes using C standard library makes more sense). -- Use C++11 features like `constexpr`, `static_assert`, managed pointers, +- Use modern C++ features like `constexpr`, `static_assert`, managed pointers, lambda expressions, for-each loops, etc. - Avoid using exceptions. C++ exceptions are trickier than you think. No, you won't get it right. Or person touching the code after you won't get |