updated protobuf to 3.18.1
This commit is contained in:
16
external/include/google/protobuf/map_field_inl.h
vendored
16
external/include/google/protobuf/map_field_inl.h
vendored
@@ -49,19 +49,19 @@ namespace internal {
|
||||
template <typename T>
|
||||
T UnwrapMapKey(const MapKey& map_key);
|
||||
template <>
|
||||
inline int32 UnwrapMapKey<int32>(const MapKey& map_key) {
|
||||
inline int32_t UnwrapMapKey<int32_t>(const MapKey& map_key) {
|
||||
return map_key.GetInt32Value();
|
||||
}
|
||||
template <>
|
||||
inline uint32 UnwrapMapKey<uint32>(const MapKey& map_key) {
|
||||
inline uint32_t UnwrapMapKey<uint32_t>(const MapKey& map_key) {
|
||||
return map_key.GetUInt32Value();
|
||||
}
|
||||
template <>
|
||||
inline int64 UnwrapMapKey<int64>(const MapKey& map_key) {
|
||||
inline int64_t UnwrapMapKey<int64_t>(const MapKey& map_key) {
|
||||
return map_key.GetInt64Value();
|
||||
}
|
||||
template <>
|
||||
inline uint64 UnwrapMapKey<uint64>(const MapKey& map_key) {
|
||||
inline uint64_t UnwrapMapKey<uint64_t>(const MapKey& map_key) {
|
||||
return map_key.GetUInt64Value();
|
||||
}
|
||||
template <>
|
||||
@@ -77,19 +77,19 @@ inline std::string UnwrapMapKey<std::string>(const MapKey& map_key) {
|
||||
template <typename T>
|
||||
inline void SetMapKey(MapKey* map_key, const T& value);
|
||||
template <>
|
||||
inline void SetMapKey<int32>(MapKey* map_key, const int32& value) {
|
||||
inline void SetMapKey<int32_t>(MapKey* map_key, const int32_t& value) {
|
||||
map_key->SetInt32Value(value);
|
||||
}
|
||||
template <>
|
||||
inline void SetMapKey<uint32>(MapKey* map_key, const uint32& value) {
|
||||
inline void SetMapKey<uint32_t>(MapKey* map_key, const uint32_t& value) {
|
||||
map_key->SetUInt32Value(value);
|
||||
}
|
||||
template <>
|
||||
inline void SetMapKey<int64>(MapKey* map_key, const int64& value) {
|
||||
inline void SetMapKey<int64_t>(MapKey* map_key, const int64_t& value) {
|
||||
map_key->SetInt64Value(value);
|
||||
}
|
||||
template <>
|
||||
inline void SetMapKey<uint64>(MapKey* map_key, const uint64& value) {
|
||||
inline void SetMapKey<uint64_t>(MapKey* map_key, const uint64_t& value) {
|
||||
map_key->SetUInt64Value(value);
|
||||
}
|
||||
template <>
|
||||
|
||||
Reference in New Issue
Block a user