summaryrefslogtreecommitdiff
path: root/external/boost/msvc2017.patch.0
blob: e888fd96aba4463803a8770d22411977df651937 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--- 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<Buff, typename Traits::nonconst_self> 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