From 446fa53eff9319d650688fd8cdc0e99605b9bf0a Mon Sep 17 00:00:00 2001 From: Ludovic 'Archivist' Lagouardette Date: Sun, 10 May 2020 12:33:02 +0200 Subject: [PATCH] function fixed --- include/gp/function.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/gp/function.hpp b/include/gp/function.hpp index 1a38cc9..53d9610 100644 --- a/include/gp/function.hpp +++ b/include/gp/function.hpp @@ -15,10 +15,10 @@ namespace gp{ }; template - class callable : virtual_callable{ + class callable : public virtual_callable{ fn internal_representation; public: - callable(const fn func) + callable(const fn& func) : internal_representation{func} {} @@ -100,7 +100,7 @@ namespace gp{ } else { - self = new callable(t); + self.functor = new callable(t); state = (state_t)(ACTIVE | NO_SOO); } }