mirror of
https://github.com/aseprite/aseprite.git
synced 2024-09-02 21:19:10 +00:00
Update some C++11 in conding styles
This commit is contained in:
parent
0a65ebcb7c
commit
05e351c10d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user