mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 04:44:34 +03:00
Fix T.12's incorrect usage of vector::begin() (#1189)
This commit is contained in:
committed by
Andrew Pardoe
parent
a5e28d4a61
commit
15008e8432
@@ -16410,7 +16410,7 @@ Hard.
|
|||||||
|
|
||||||
vector<string> v;
|
vector<string> v;
|
||||||
auto& x = v.front(); // bad
|
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
|
##### Enforcement
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user