Disambiguate some uses of PropertyType for msvc

This commit is contained in:
Thomas Goyne 2017-09-05 10:04:41 -07:00
parent 4961643f8c
commit 7ba9d86ffd
1 changed files with 3 additions and 1 deletions

View File

@ -355,6 +355,7 @@ inline bool Value<T>::is_valid_for_property(ContextType context, const ValueType
return true; return true;
} }
using realm::PropertyType;
if (realm::is_array(prop.type)) { if (realm::is_array(prop.type)) {
if (prop.type != PropertyType::Object) { if (prop.type != PropertyType::Object) {
return false; 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 (realm::is_array(type)) {
if (type == PropertyType::LinkingObjects) { if (type == PropertyType::LinkingObjects) {
throw std::runtime_error("LinkingObjects' type is not supported"); throw std::runtime_error("LinkingObjects' type is not supported");