diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-10-14 02:46:52 -0700 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-10-14 02:46:52 -0700 |
commit | 53272534a76a9d8cbee4ee887e1f360c4a99728b (patch) | |
tree | 54206aca1cfa1461ba365b05e5848f2843be91b9 /include/protected.h | |
parent | 777eb276f635c949ccdcf9613ad55d42190cb387 (diff) |
The initial class properties can now only be scalar values, just like in PHP
Diffstat (limited to 'include/protected.h')
-rw-r--r-- | include/protected.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/protected.h b/include/protected.h index e660f76..a1fdde5 100644 --- a/include/protected.h +++ b/include/protected.h @@ -23,7 +23,15 @@ public: * @param name Name of the property * @param value Default value of the property */ - Protected(const char *name, const Value &value) : Member(name, false, value) {} + Protected(const char *name) : Member(name, false) {} + Protected(const char *name, std::nullptr_t value) : Member(name, false, value) {} + Protected(const char *name, int value) : Member(name, false, value) {} + Protected(const char *name, long value) : Member(name, false, value) {} + Protected(const char *name, bool value) : Member(name, false, value) {} + Protected(const char *name, char value) : Member(name, false, value) {} + Protected(const char *name, const std::string &value) : Member(name, false, value) {} + Protected(const char *name, const char *value, int size=-1) : Member(name, false, value, size) {} + Protected(const char *name, double value) : Member(name, false, value) {} /** * Destructor |