From 5d3d63cf1138a58d1bb777b53fda2ed4d56d399e Mon Sep 17 00:00:00 2001 From: hvellyr Date: Wed, 25 May 2016 09:15:39 +0200 Subject: [PATCH] Provide explicit copy operator declaration to avoid compiler warning --- peglib.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/peglib.h b/peglib.h index 4ed126a..e2851f7 100644 --- a/peglib.h +++ b/peglib.h @@ -345,6 +345,8 @@ public: template ::value>::type*& = enabler> void operator=(F /*fn*/) {} + Action& operator=(const Action& rhs) = default; + operator bool() const { return (bool)fn_; }