Remove ill-formed MSVC-specific code that doesn't compile with /permissive-

This commit is contained in:
Peter Dimov
2018-07-09 20:41:33 +03:00
parent 4dd5ad0f64
commit c24661a636

View File

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