mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-18 13:14:40 +03:00
Break comment to respect 100 column limit (#1069)
This commit is contained in:
committed by
Jonathan Wakely
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();
|
||||||
|
|||||||
Reference in New Issue
Block a user