diff --git a/peglib.h b/peglib.h index 7eb9b68..0350317 100644 --- a/peglib.h +++ b/peglib.h @@ -1707,9 +1707,9 @@ public: return parse_and_get_value(s, n, dt, val, path); } - Definition& operator=(Action a) { + Action operator=(Action a) { action = a; - return *this; + return a; } template