Core: ValueType now allows later (in T) definition of type No

git-svn-id: svn://ultimatepp.org/upp/trunk@10009 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-07-05 15:00:37 +00:00
parent 2ccfe7ab06
commit c543d9985d

View file

@ -53,8 +53,8 @@ template<> inline dword ValueTypeNo(const Value*) { return VALUE_V; }
template <class T, dword type = UNKNOWN_V, class B = EmptyClass>
class ValueType : public B {
public:
static dword ValueTypeNo(const T*) { return type == UNKNOWN_V ? StaticTypeNo<T>() + 0x8000000 : type; }
friend dword ValueTypeNo(const T*) { return T::ValueTypeNo(NULL); }
static dword ValueTypeNo() { return type == UNKNOWN_V ? StaticTypeNo<T>() + 0x8000000 : type; }
friend dword ValueTypeNo(const T*) { return T::ValueTypeNo(); }
bool IsNullInstance() const { return false; }
void Serialize(Stream& s) { NEVER(); }