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