Update some C++11 in conding styles

This commit is contained in:
David Capello 2020-04-24 12:07:52 -03:00
parent 0a65ebcb7c
commit 05e351c10d

View File

@ -85,9 +85,10 @@ We are using some C++11 features, mainly:
* Use range-based for loops (`for (const auto& item : values) { ... }`)
* Use template alias (`template<typename T> alias = orig<T>;`)
* Use non-generic lambda functions
* Use `std::shared_ptr` and `std::unique_ptr` (currently we're using
`base::SharedPtr` and `base::UniquePtr` but you should use the STL
ones now)
* Use `std::shared_ptr` and `std::unique_ptr`
* Use `base::clamp` (no `std::clamp` yet)
* Use `static constexpr T v = ...;`
* You can use `<atomic>`, `<thread>`, `<mutex>`, and `<condition_variable>`
* We use GCC 4.8 on Linux, so check the features available since GCC 4.8 in
* We can use `using T = ...;` instead of `typedef ... T`
* We use gcc 9.2 or clang 9.0 on Linux, so check the features available in
https://developer.mozilla.org/en-US/docs/Mozilla/Using_CXX_in_Mozilla_code