We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 005e546 commit 165c61eCopy full SHA for 165c61e
CppCoreGuidelines.md
@@ -11452,12 +11452,12 @@ Defining "small amount" precisely is impossible.
11452
##### Example
11453
11454
string modify1(string);
11455
- void modify2(shared_ptr<string);
+ void modify2(shared_ptr<string>);
11456
11457
void fct(string& s)
11458
{
11459
- auto res = async(modify1,string);
11460
- async(modify2,&s);
+ auto res = async(modify1, s);
+ async(modify2, &s);
11461
}
11462
11463
The call of `modify1` involves copying two `string` values; the call of `modify2` does not.
0 commit comments