mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Fixed rest of T.12 example following up #1189
This commit is contained in:
parent
15008e8432
commit
93ac723f6b
|
@ -16408,7 +16408,7 @@ Hard.
|
|||
|
||||
##### Example (using TS concepts)
|
||||
|
||||
vector<string> v;
|
||||
vector<string> v{ "abc", "xyz" };
|
||||
auto& x = v.front(); // bad
|
||||
String& s = v.front(); // good (String is a GSL concept)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user