]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/json/test/memory_resource.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / json / test / memory_resource.cpp
index 27dd2077914ffe0dace7fcd8560dfe54ab861da8..b68cffaf9b797740b446a1982d937b967016429e 100644 (file)
 #include <boost/json/memory_resource.hpp>
 #include <boost/json/monotonic_resource.hpp>
 #include <boost/json/value.hpp>
-
-#ifndef BOOST_JSON_STANDALONE
 #include <boost/container/pmr/vector.hpp>
-#endif
 #include <vector>
 
 #include "test_suite.hpp"
@@ -27,7 +24,6 @@ public:
     void
     testBoostPmr()
     {
-#ifndef BOOST_JSON_STANDALONE
         using allocator_type =
             polymorphic_allocator<value>;
 
@@ -51,32 +47,6 @@ public:
             std::vector<value, allocator_type> v2(3, {}, a);
             BOOST_TEST(v2[1].storage().get() == &mr);
         }
-#endif
-    }
-
-    void
-    testStdPmr()
-    {
-#ifdef BOOST_JSON_STANDALONE
-        using allocator_type =
-            std::pmr::polymorphic_allocator<value>;
-
-        // pass polymorphic_allocator
-        // where storage_ptr is expected
-        {
-            value  jv( allocator_type{} );
-            object  o( allocator_type{} );
-            array   a( allocator_type{} );
-            string  s( allocator_type{} );
-        }
-        {
-            monotonic_resource mr;
-            allocator_type a(&mr);
-
-            std::vector<value, allocator_type> v2(3, {}, a);
-            BOOST_TEST(v2[1].storage().get() == &mr);
-        }
-#endif
     }
 
     // These are here instead of the type-specific
@@ -130,7 +100,6 @@ public:
     run()
     {
         testBoostPmr();
-        testStdPmr();
         testPmr();
     }
 };