--- boost/circular_buffer/details.hpp +++ boost/circular_buffer/details.hpp @@ -216,12 +216,19 @@ // Helper types //! Base iterator. +#if defined _MSC_VER && !defined __clang__ +#pragma warning(push) +#pragma warning(disable: 4996) +#endif typedef std::iterator< std::random_access_iterator_tag, typename Traits::value_type, typename Traits::difference_type, typename Traits::pointer, typename Traits::reference> base_iterator; +#if defined _MSC_VER && !defined __clang__ +#pragma warning(pop) +#endif //! Non-const iterator. typedef iterator nonconst_self; --- boost/iterator.hpp +++ boost/iterator.hpp @@ -13,7 +13,14 @@ namespace boost { +#if defined _MSC_VER && !defined __clang__ +#pragma warning(push) +#pragma warning(disable: 4996) +#endif using std::iterator; +#if defined _MSC_VER && !defined __clang__ +#pragma warning(pop) +#endif } // namespace boost