https://github.com/coin-or/Bonmin/commit/bce858f7874e1d2d9e57cc96ab8b8185e85a9651
--- a/src/Interfaces/BonTypes.hpp 2010-04-29 02:58:54.000000000 -0600
+++ b/src/Interfaces/BonTypes.hpp 2021-07-20 11:28:06.733907309 -0600
@@ -29,18 +29,11 @@ public:
/** Access pointer to first element of storage.*/
inline T* operator()(){
-#if defined(_MSC_VER)
- if (std::vector<T>::size() == 0)
- return NULL;
-#endif
-return &std::vector<T>::front();}
+ return &(*std::vector<T>::begin());
+}
/** Access pointer to first element of storage.*/
inline const T* operator()() const {
-#if defined(_MSC_VER)
- if (std::vector<T>::size() == 0)
- return NULL;
-#endif
-return &std::vector<T>::front();
+ return &(*std::vector<T>::begin());
}
};