Skip to content

Commit 709d3f0

Browse files
committed
Update map_field_value.h
Use `std::vector<_>::const_iterator` for the typealias to allow building with different C++ standard libraries. This is required to enable the use of the package for Android platforms.
1 parent f7237cf commit 709d3f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

firestore/src/include/firebase/firestore/map_field_value.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ using MapFieldPathValue = std::unordered_map<FieldPath, FieldValue>;
3636
// module. A workaround for deserialization cross reference compiler
3737
// crashes https://github.com/apple/swift/issues/70253
3838
using FieldValueVector = std::vector<FieldValue>;
39+
#if defined(_WIN32)
3940
using FieldValueVectorConstIterator = std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types<FieldValue>>>;
41+
#else
42+
using FieldValueVectorConstIterator = std::vector<FieldValue>::const_iterator;
43+
#endif
4044
using StringVectorConstIterator = std::vector<std::string>::const_iterator;
4145
#endif
4246

0 commit comments

Comments
 (0)