forked from PuqiAR/Fig-TreeWalker
[Impl] StructInstance现在记录parent TypeInfo, StructType改用TypeInfo
This commit is contained in:
@@ -76,4 +76,17 @@ namespace Fig
|
||||
using NullClass = std::monostate;
|
||||
using StringClass = FString;
|
||||
}; // namespace ValueType
|
||||
}; // namespace Fig
|
||||
}; // namespace Fig
|
||||
|
||||
|
||||
namespace std
|
||||
{
|
||||
template <>
|
||||
struct hash<Fig::TypeInfo>
|
||||
{
|
||||
size_t operator()(const Fig::TypeInfo &t)
|
||||
{
|
||||
return std::hash<size_t>{}(t.getInstanceID());
|
||||
}
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user