use _MSC_VER to guard fix for C4596 when compiling with MSVC141

This commit is contained in:
Nathan Cook
2018-02-28 13:43:34 +00:00
parent 795046f8fc
commit f1906e914e

View File

@ -252,7 +252,12 @@ namespace boost {
n = i - j; n = i - j;
} }
private: private:
// MSVC 14.1 - avoid C4596: 'difference_type': illegal qualified name in member declaration
#if defined(_MSC_VER) && _MSC_VER >= 1912
BOOST_DEDUCED_TYPENAME difference_type n; BOOST_DEDUCED_TYPENAME difference_type n;
#else
BOOST_DEDUCED_TYPENAME RandomAccessIteratorConcept::difference_type n;
#endif
Iterator i; Iterator i;
Iterator j; Iterator j;
#endif #endif