Skip to content

Commit d175c5c

Browse files
committed
简单修改
简单修改
1 parent 84fae42 commit d175c5c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

public/actor/actor_base/actor_type.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include "actor_enum.h"
44

5+
#define NOTUSING_BOOST_TYPEINFO
56
#ifndef NOTUSING_BOOST_TYPEINFO
67
# include <boost/type_index.hpp>
78
# define HASH_CODE_VALUE(_TYPE) boost::typeindex::type_id<_TYPE>().hash_code()

public/protocol/init_protobuf.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "xmlprotocol.h"
77

88
// typeid(T).hash_code() 因为c++标准并没有强制要求只是建议编译器 不同类型生成不同的hash值
9+
#define NOTUSING_BOOST_TYPEINFO
910
#ifndef NOTUSING_BOOST_TYPEINFO
1011
# include <boost/type_index.hpp>
1112
# define HASH_CODE_VALUE(_TYPE) boost::typeindex::type_id<_TYPE>().hash_code()

0 commit comments

Comments
 (0)