summaryrefslogtreecommitdiff
path: root/include/class.h
diff options
context:
space:
mode:
authorMartijn Otto <martijn.otto@copernica.com>2014-02-17 10:04:40 +0100
committerMartijn Otto <martijn.otto@copernica.com>2014-02-17 10:04:40 +0100
commit687d4f16ec8c45db4034a0eafc03663f67995f28 (patch)
tree8f02e679215758da3216a7906a4d9fd0eac63235 /include/class.h
parent06aa5fd5afaba69544b93654fb0a4f9c2651306e (diff)
Removed traits option: this would need to be conditionally included based on the PHP version, which we cannot do in headers (due to the fact we do not want to include the whole php library when compiling extensions)
Diffstat (limited to 'include/class.h')
-rw-r--r--include/class.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/class.h b/include/class.h
index 201f4de..243c2c8 100644
--- a/include/class.h
+++ b/include/class.h
@@ -129,15 +129,15 @@ public:
ClassFlagged(const std::initializer_list<Member> &members) : Class<T>(members, FlagClass(Flags)) {}
};
-template <typename T>
// C++11 analog of `typedef`. Equivalent to the following pseudocode: typedef ClassFlagged<T, Zend::AccClass::FINAL> FinalClass<T>;
+template <typename T>
using FinalClass = ClassFlagged<T, Zend::AccClass::FINAL>;
+
template <typename T>
using AbstractClass = ClassFlagged<T, Zend::AccClass::ABSTRACT>;
+
template <typename T>
using Interface = ClassFlagged<T, Zend::AccClass::INTERFACE>;
-template <typename T>
-using Trait = ClassFlagged<T, Zend::AccClass::TRAIT>;
/**
* End of namespace