Skip to content

Commit 165c61e

Browse files
committed
bad signature
# Conflicts: # CppCoreGuidelines.md
1 parent 005e546 commit 165c61e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CppCoreGuidelines.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11452,12 +11452,12 @@ Defining "small amount" precisely is impossible.
1145211452
##### Example
1145311453

1145411454
string modify1(string);
11455-
void modify2(shared_ptr<string);
11455+
void modify2(shared_ptr<string>);
1145611456

1145711457
void fct(string& s)
1145811458
{
11459-
auto res = async(modify1,string);
11460-
async(modify2,&s);
11459+
auto res = async(modify1, s);
11460+
async(modify2, &s);
1146111461
}
1146211462

1146311463
The call of `modify1` involves copying two `string` values; the call of `modify2` does not.

0 commit comments

Comments
 (0)