Disambiguate some uses of PropertyType for msvc

This commit is contained in:
Thomas Goyne 2017-09-05 10:04:41 -07:00
parent 2185442f41
commit 682a45a18e
1 changed files with 3 additions and 1 deletions

View File

@ -354,6 +354,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;
@ -395,8 +396,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");