From bf6537d99484255bf06fd4a594ef13057d18522d Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Mon, 13 Jan 2014 09:42:36 +0100 Subject: [PATCH] forgot the virtual member --- inheritance_functor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inheritance_functor.cpp b/inheritance_functor.cpp index b7a6c6e..40c1a9a 100644 --- a/inheritance_functor.cpp +++ b/inheritance_functor.cpp @@ -58,7 +58,7 @@ class Assign : public Functor public: Assign( OP & o ) : Functor(o) {} - int operator() ( int& value, OutIt out ) + virtual int operator() ( int& value, OutIt out ) { // std::clog << value << " + " << this->op.arg << std::endl; return this->op(value,out);