]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/move/test/unique_ptr_modifiers.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / move / test / unique_ptr_modifiers.cpp
index 376c1044bb313b6c5102b8b6d86ac244d8964a13..05ff3d7eb3aaf277e7cdec9a37a9aec62572d466 100644 (file)
@@ -11,6 +11,7 @@
 //
 //////////////////////////////////////////////////////////////////////////////
 #include <boost/move/utility_core.hpp>
+#include <boost/core/ignore_unused.hpp>
 #include <boost/move/unique_ptr.hpp>
 #include <boost/static_assert.hpp>
 #include <boost/move/adl_move_swap.hpp>
@@ -88,7 +89,7 @@ void test()
       bml::unique_ptr<A> p(new A);
       BOOST_TEST(A::count == 1);
       A* i = p.get();
-      (void)i;
+      ::boost::ignore_unused(i);
       p.reset();
       BOOST_TEST(A::count == 0);
       BOOST_TEST(p.get() == 0);
@@ -98,7 +99,7 @@ void test()
       bml::unique_ptr<A> p(new A);
       BOOST_TEST(A::count == 1);
       A* i = p.get();
-      (void)i;
+      ::boost::ignore_unused(i);
       p.reset(new A);
       BOOST_TEST(A::count == 1);
       }
@@ -107,7 +108,7 @@ void test()
       bml::unique_ptr<A> p(new A);
       BOOST_TEST(A::count == 1);
       A* i = p.get();
-      (void)i;
+      ::boost::ignore_unused(i);
       p.reset(0);
       BOOST_TEST(A::count == 0);
       BOOST_TEST(p.get() == 0);
@@ -121,7 +122,7 @@ void test()
       bml::unique_ptr<A[]> p(new A[2]);
       BOOST_TEST(A::count == 2);
       A* i = p.get();
-      (void)i;
+      ::boost::ignore_unused(i);
       p.reset();
       BOOST_TEST(A::count == 0);
       BOOST_TEST(p.get() == 0);
@@ -131,7 +132,7 @@ void test()
       bml::unique_ptr<A[]> p(new A[2]);
       BOOST_TEST(A::count == 2);
       A* i = p.get();
-      (void)i;
+      ::boost::ignore_unused(i);
       p.reset(new A[3]);
       BOOST_TEST(A::count == 3);
       }
@@ -140,7 +141,7 @@ void test()
       bml::unique_ptr<A[]> p(new A[2]);
       BOOST_TEST(A::count == 2);
       A* i = p.get();
-      (void)i;
+      ::boost::ignore_unused(i);
       p.reset(0);
       BOOST_TEST(A::count == 0);
       BOOST_TEST(p.get() == 0);
@@ -154,7 +155,7 @@ void test()
       bml::unique_ptr<A[2]> p(new A[2]);
       BOOST_TEST(A::count == 2);
       A* i = p.get();
-      (void)i;
+      ::boost::ignore_unused(i);
       p.reset();
       BOOST_TEST(A::count == 0);
       BOOST_TEST(p.get() == 0);
@@ -164,7 +165,7 @@ void test()
       bml::unique_ptr<A[2]> p(new A[2]);
       BOOST_TEST(A::count == 2);
       A* i = p.get();
-      (void)i;
+      ::boost::ignore_unused(i);
       p.reset(new A[3]);
       BOOST_TEST(A::count == 3);
       }
@@ -173,7 +174,7 @@ void test()
       bml::unique_ptr<A[2]> p(new A[2]);
       BOOST_TEST(A::count == 2);
       A* i = p.get();
-      (void)i;
+      ::boost::ignore_unused(i);
       p.reset(0);
       BOOST_TEST(A::count == 0);
       BOOST_TEST(p.get() == 0);
@@ -199,7 +200,7 @@ void test()
    BOOST_TEST(A::count == 1);
    BOOST_TEST(B::count == 0);
    A* i = p.get();
-   (void)i;
+   ::boost::ignore_unused(i);
    p.reset(new B);
    BOOST_TEST(A::count == 1);
    BOOST_TEST(B::count == 1);
@@ -211,7 +212,7 @@ void test()
    BOOST_TEST(A::count == 1);
    BOOST_TEST(B::count == 1);
    A* i = p.get();
-   (void)i;
+   ::boost::ignore_unused(i);
    p.reset(new B);
    BOOST_TEST(A::count == 1);
    BOOST_TEST(B::count == 1);
@@ -224,7 +225,7 @@ void test()
    bml::unique_ptr<const volatile A[2]> p(new const A[2]);
    BOOST_TEST(A::count == 2);
    const volatile A* i = p.get();
-   (void)i;
+   ::boost::ignore_unused(i);
    p.reset(new volatile A[3]);
    BOOST_TEST(A::count == 3);
    }
@@ -233,7 +234,7 @@ void test()
    bml::unique_ptr<const A[2]> p(new A[2]);
    BOOST_TEST(A::count == 2);
    const A* i = p.get();
-   (void)i;
+   ::boost::ignore_unused(i);
    p.reset(new const A[3]);
    BOOST_TEST(A::count == 3);
    }
@@ -244,7 +245,7 @@ void test()
    bml::unique_ptr<const volatile A[2]> p(new const A[2]);
    BOOST_TEST(A::count == 2);
    const volatile A* i = p.get();
-   (void)i;
+   ::boost::ignore_unused(i);
    p.reset(new volatile A[3]);
    BOOST_TEST(A::count == 3);
    }
@@ -253,7 +254,7 @@ void test()
    bml::unique_ptr<const A[2]> p(new A[2]);
    BOOST_TEST(A::count == 2);
    const A* i = p.get();
-   (void)i;
+   ::boost::ignore_unused(i);
    p.reset(new const A[3]);
    BOOST_TEST(A::count == 3);
    }