diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-02-28 16:06:23 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-02-28 16:06:23 +0100 |
commit | 73945a9cb2b096a5379d17c028bda102b87aedce (patch) | |
tree | e261496b4127a5e00bfc88841567ab6fcaefbe0f /include | |
parent | 13fe1d48fa4782dc65f974bbc1cec5e2e5e8d158 (diff) |
various fixes to make the classes example functional again
Diffstat (limited to 'include')
-rw-r--r-- | include/class.h | 11 | ||||
-rw-r--r-- | include/classbase.h | 2 |
2 files changed, 10 insertions, 3 deletions
diff --git a/include/class.h b/include/class.h index bed9fa7..51cfb46 100644 --- a/include/class.h +++ b/include/class.h @@ -84,8 +84,15 @@ public: * @param value Actual property value * @param flags Optional flags */ - template <typename TYPE> - void add(const char *name, const Type &value, int flags = Public) { ClassBase::add(name, value, flags); } + void add(const char *name, std::nullptr_t value, int flags = Public) { ClassBase::add(name, value, flags); } + void add(const char *name, uint64_t value, int flags = Public) { ClassBase::add(name, value, flags); } + void add(const char *name, uint32_t value, int flags = Public) { ClassBase::add(name, value, flags); } + void add(const char *name, uint16_t value, int flags = Public) { ClassBase::add(name, value, flags); } + void add(const char *name, char value, int flags = Public) { ClassBase::add(name, value, flags); } + void add(const char *name, const char *value, int flags = Public) { ClassBase::add(name, value, flags); } + void add(const char *name, const std::string &value, int flags = Public) { ClassBase::add(name, value, flags); } + void add(const char *name, bool value, int flags = Public) { ClassBase::add(name, value, flags); } + void add(const char *name, double value, int flags = Public) { ClassBase::add(name, value, flags); } protected: /** diff --git a/include/classbase.h b/include/classbase.h index 9fe1bda..9726e5a 100644 --- a/include/classbase.h +++ b/include/classbase.h @@ -61,7 +61,7 @@ public: * @param that */ ClassBase(ClassBase &&that) : - _flags(that._flags), _methods(std::move(that._methods)), _methods(std::move(that._methods)), _entry(that._entry) + _flags(that._flags), _methods(std::move(that._methods)), _members(std::move(that._members)), _entry(that._entry) { // other entry are invalid now (not that it is used..., class objects are // only moved during extension setup, when the entry pointer has not yet |