diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-01-15 16:34:14 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-01-15 16:34:14 +0100 |
commit | d87b3ca8f1dbcb395f2dfd6540483da7a0e5e15c (patch) | |
tree | 6dd3179162d5cecc474fc9028039bd757f6df04b /include/class.h | |
parent | d8fe9239959dfeae11daa5de70126e30119d3b75 (diff) |
Added the Php::Function class. This is an extension to the Php::Value class that can be used if you want to assign a std::function object to a Value. This is useful if you want to pass a C++ lambda to a PHP userspace function
Diffstat (limited to 'include/class.h')
-rw-r--r-- | include/class.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/class.h b/include/class.h index 9257213..e11074c 100644 --- a/include/class.h +++ b/include/class.h @@ -555,10 +555,12 @@ private: } /** - * Namespaces have access to the private base class, so that the classes - * can be registered. + * Namespaces and the function have access to the private base class, + * so that the classes can be registered (the function object needs + * this to register the Functor class). */ friend class Namespace; + friend class Function; /** * All Php::Class<AnyThing> also need access to the base class to |