mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Break comment to respect 100 column limit (#1069)
This commit is contained in:
parent
c9fd263e07
commit
165c79b417
|
@ -13399,7 +13399,8 @@ Application concepts are easier to reason about.
|
||||||
|
|
||||||
void some_fun() {
|
void some_fun() {
|
||||||
std::string msg, msg2;
|
std::string msg, msg2;
|
||||||
std::thread publisher([&] { msg = "Hello"; }); // bad (less expressive and more error-prone)
|
std::thread publisher([&] { msg = "Hello"; }); // bad: less expressive
|
||||||
|
// and more error-prone
|
||||||
auto pubtask = std::async([&] { msg2 = "Hello"; }); // OK
|
auto pubtask = std::async([&] { msg2 = "Hello"; }); // OK
|
||||||
// ...
|
// ...
|
||||||
publisher.join();
|
publisher.join();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user