From 5ccd9d013ce04abeb790819b19ddc4e9a051123f Mon Sep 17 00:00:00 2001 From: WDdxRW Date: Sat, 17 Jul 2021 09:52:18 +0800 Subject: [PATCH] Update item34.md --- 6.LambdaExpressions/item34.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/6.LambdaExpressions/item34.md b/6.LambdaExpressions/item34.md index f9fc3b5..26eda72 100644 --- a/6.LambdaExpressions/item34.md +++ b/6.LambdaExpressions/item34.md @@ -80,7 +80,7 @@ auto setSoundB = //“B”代表“bind” ```c++ auto setSoundB = std::bind(setAlarm, - std::bind(std::plus<>(), steady_clock::now(), 1h), + std::bind(std::plus<>(), std::bind(steady_clock::now), 1h), _1, 30s); ``` @@ -93,7 +93,7 @@ using namespace std::placeholders; auto setSoundB = std::bind(setAlarm, std::bind(std::plus(), - steady_clock::now(), + std::bind(steady_clock::now), hours(1)), _1, seconds(30));