mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
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:
parent
2ccfe7ab06
commit
c543d9985d
1 changed files with 2 additions and 2 deletions
|
|
@ -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(); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue