From f11db25628acf41112832dde0838724367daedae Mon Sep 17 00:00:00 2001 From: psliwa Date: Thu, 4 Feb 2016 11:06:55 +0100 Subject: [PATCH] Minor improvement. --- CppCoreGuidelines.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 7a2e4ca..88beace 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -3153,10 +3153,10 @@ Pointers and references to locals shouldn't outlive their scope. Lambdas that ca { int local = 42; - thread_pool.queue_work([&]{ process(local); }); // Want a reference to local. - // Note, that after program exists this scope, - // local does no longer exist, - // therefore process() call will have undefined behavior! + thread_pool.queue_work([&]{ process(local); }); // Want a reference to local. + // Note, that after program exists this scope, + // local does no longer exist, therefore + // process() call will have undefined behavior! } ##### Example, good