Disambiguate some uses of PropertyType for msvc
This commit is contained in:
parent
4961643f8c
commit
7ba9d86ffd
|
@ -355,6 +355,7 @@ inline bool Value<T>::is_valid_for_property(ContextType context, const ValueType
|
|||
return true;
|
||||
}
|
||||
|
||||
using realm::PropertyType;
|
||||
if (realm::is_array(prop.type)) {
|
||||
if (prop.type != PropertyType::Object) {
|
||||
return false;
|
||||
|
@ -396,8 +397,9 @@ inline bool Value<T>::is_valid_for_property(ContextType context, const ValueType
|
|||
}
|
||||
}
|
||||
|
||||
inline std::string js_type_name_for_property_type(PropertyType type)
|
||||
inline std::string js_type_name_for_property_type(realm::PropertyType type)
|
||||
{
|
||||
using realm::PropertyType;
|
||||
if (realm::is_array(type)) {
|
||||
if (type == PropertyType::LinkingObjects) {
|
||||
throw std::runtime_error("LinkingObjects' type is not supported");
|
||||
|
|
Loading…
Reference in New Issue