diff options
author | Toon Schoenmakers <toon.schoenmakers@copernica.com> | 2015-05-18 11:24:04 +0200 |
---|---|---|
committer | Toon Schoenmakers <toon.schoenmakers@copernica.com> | 2015-05-18 11:24:04 +0200 |
commit | 273ad6a1f4bec5360bf7635197cb28fc4b55c24a (patch) | |
tree | 37a3a498183dd9c7bd9a531dd399d07587fcda40 /include/value.h | |
parent | 7c2cd609dc7ca0391094b3f27d296f23bfcaaf10 (diff) |
The Value::get(int) method now works on objects that implemented ArrayAccess as well
Diffstat (limited to 'include/value.h')
-rw-r--r-- | include/value.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/value.h b/include/value.h index 97b1509..9959a9c 100644 --- a/include/value.h +++ b/include/value.h @@ -1002,7 +1002,7 @@ public: * @param name Name of the function * @return Value */ - Value call(const char *name); + Value call(const char *name) const; /** * @@ -1012,7 +1012,7 @@ public: * @return Value */ template <typename ...Args> - Value call(const char *name, Args&&... args) + Value call(const char *name, Args&&... args) const { // store arguments Value vargs[] = { static_cast<Value>(args)... }; @@ -1107,7 +1107,7 @@ private: * @param argv The parameters * @return Value */ - Value exec(const char *name, int argc, struct _zval_struct ***params); + Value exec(const char *name, int argc, struct _zval_struct ***params) const; /** * Refcount - the number of references to the value |