We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a9b7e6 commit ffd0b24Copy full SHA for ffd0b24
1 file changed
ortools/math_opt/elemental/attr_key.h
@@ -99,8 +99,20 @@ class AttrKey {
99
}
100
101
// Element iteration.
102
- constexpr const value_type* begin() const { return element_ids_.begin(); }
103
- constexpr const value_type* end() const { return element_ids_.end(); }
+ constexpr const value_type* begin() const {
+#if defined(_MSC_VER)
104
+ return &(*element_ids_.begin());
105
+#else
106
+ return element_ids_.begin();
107
+#endif
108
+ }
109
+ constexpr const value_type* end() const {
110
111
+ return &(*element_ids_.end());
112
113
+ return element_ids_.end();
114
115
116
117
// `AttrKey` is comparable (ordering is lexicographic) and hashable.
118
//
0 commit comments