diff --git a/src/libCom/test/epicsExceptionTest.cpp b/src/libCom/test/epicsExceptionTest.cpp index 53f56c32d..e69f7e927 100644 --- a/src/libCom/test/epicsExceptionTest.cpp +++ b/src/libCom/test/epicsExceptionTest.cpp @@ -35,7 +35,9 @@ const nothrow_t nothrow ; #if defined ( _MSC_VER ) // some interesting bugs found in the MS implementation of new -# if _MSC_VER > 1310 /* this gets fixed some release after visual studio 7 we hope */ +# if _MSC_VER >= 1900 + static size_t unsuccessfulNewSize = numeric_limits < size_t > :: max (); +# elif _MSC_VER > 1310 /* this gets fixed some release after visual studio 7 we hope */ static const size_t unsuccessfulNewSize = numeric_limits < size_t > :: max (); # else static const size_t unsuccessfulNewSize = numeric_limits < size_t > :: max () - 100;