From cebb8aa3d637308c9f6b84ed7034b192142e5d77 Mon Sep 17 00:00:00 2001 From: Ludovic 'Archivist' Lagouardette Date: Wed, 12 May 2021 18:45:17 +0200 Subject: [PATCH] Using Ruse to make handling function pointers easier --- include/gp/functional/function.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/gp/functional/function.hpp b/include/gp/functional/function.hpp index e8fc8c7..b5eb03c 100644 --- a/include/gp/functional/function.hpp +++ b/include/gp/functional/function.hpp @@ -122,6 +122,10 @@ namespace gp{ ); } + function(ret f_ptr(args...)) + : function(f_ptr, nullopt) + {} + function(function&& rhs) : alloc(rhs.alloc) , invokator(rhs.invokator)