mirror of
https://github.com/AnthonyCalandra/modern-cpp-features.git
synced 2025-12-17 01:54:36 +03:00
Add improvement to usage of right angle brackets
They are now properly distinguished from serializing operators (N1757).
This commit is contained in:
10
README.md
10
README.md
@@ -65,6 +65,7 @@ C++11 includes the following new language features:
|
||||
- [explicit conversion functions](#explicit-conversion-functions)
|
||||
- [inline-namespaces](#inline-namespaces)
|
||||
- [non-static data member initializers](#non-static-data-member-initializers)
|
||||
- [right angle brackets](#right-angle-brackets)
|
||||
|
||||
C++11 includes the following new library features:
|
||||
- [std::move](#stdmove)
|
||||
@@ -1033,6 +1034,15 @@ class Human {
|
||||
};
|
||||
```
|
||||
|
||||
|
||||
### Right angle Brackets
|
||||
C++11 is now able to infer when a series of right angle brackets is used as an operator or as a closing statement of typedef, without having to add whitespace.
|
||||
|
||||
```c++
|
||||
typedef std::map<int, std::map <int, std::map <int, int> > > cpp98LongTypedef;
|
||||
typedef std::map<int, std::map <int, std::map <int, int>>> cpp11LongTypedef;
|
||||
```
|
||||
|
||||
## C++11 Library Features
|
||||
|
||||
### std::move
|
||||
|
||||
Reference in New Issue
Block a user