From 1d11cd1ed13593f5892aff847dfbb42b85a04037 Mon Sep 17 00:00:00 2001 From: john-lynch Date: Tue, 29 Sep 2015 00:00:21 -0500 Subject: [PATCH] Fixing typo in move constructor implementation that resulted in compile error during tests. --- include/gsl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gsl.h b/include/gsl.h index 6de3780..95116dc 100644 --- a/include/gsl.h +++ b/include/gsl.h @@ -52,7 +52,7 @@ class Final_act public: explicit Final_act(F f) : f_(std::move(f)), invoke_(true) {} - Final_act(Final_act&& other) : f_(std::move(other.f_)), invoke_(true) { other._invoke = false; } + Final_act(Final_act&& other) : f_(std::move(other.f_)), invoke_(true) { other.invoke_ = false; } Final_act(const Final_act&) = delete; Final_act& operator=(const Final_act&) = delete;