IDName.h中的class id改名为class hashcode
This commit is contained in:
parent
e1a8241d16
commit
ee30255116
@ -45,12 +45,12 @@ namespace hgl
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
static const size_t GetClassID () ///<获取类ID
|
static const size_t GetClassHC () ///<获取类HashCode
|
||||||
{
|
{
|
||||||
static SelfClass self;
|
static SelfClass self;
|
||||||
static size_t class_id=typeid(self).hash_code();
|
static size_t class_hc=typeid(self).hash_code();
|
||||||
|
|
||||||
return class_id;
|
return class_hc;
|
||||||
}
|
}
|
||||||
|
|
||||||
const int GetID ()const{return csv.id;} ///<获取名称ID
|
const int GetID ()const{return csv.id;} ///<获取名称ID
|
||||||
|
Loading…
x
Reference in New Issue
Block a user