mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Fix T.12's incorrect usage of vector::begin() (#1189)
This commit is contained in:
parent
a5e28d4a61
commit
15008e8432
|
@ -16410,7 +16410,7 @@ Hard.
|
|||
|
||||
vector<string> v;
|
||||
auto& x = v.front(); // bad
|
||||
String& s = v.begin(); // good (String is a GSL concept)
|
||||
String& s = v.front(); // good (String is a GSL concept)
|
||||
|
||||
##### Enforcement
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user