This is an automated email from the ASF dual-hosted git repository.

fokko pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/main by this push:
     new 07fbc01cd AVRO-4102: [C++] Remove boost::shared_array (#3273)
07fbc01cd is described below

commit 07fbc01cd4fe88a39dfee545560b72262d692005
Author: Gang Wu <[email protected]>
AuthorDate: Mon Dec 30 03:57:21 2024 +0800

    AVRO-4102: [C++] Remove boost::shared_array (#3273)
    
    * AVRO-4102: [C++] Remove boost::shared_array
    
    * add #include <functional>
    
    ---------
    
    Co-authored-by: Thiruvalluvan M G <[email protected]>
---
 lang/c++/include/avro/buffer/detail/BufferDetail.hh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lang/c++/include/avro/buffer/detail/BufferDetail.hh 
b/lang/c++/include/avro/buffer/detail/BufferDetail.hh
index 1b7663afc..56e86c8a2 100644
--- a/lang/c++/include/avro/buffer/detail/BufferDetail.hh
+++ b/lang/c++/include/avro/buffer/detail/BufferDetail.hh
@@ -19,13 +19,14 @@
 #ifndef avro_BufferDetail_hh__
 #define avro_BufferDetail_hh__
 
-#include <boost/shared_array.hpp>
 #ifdef HAVE_BOOST_ASIO
 #include <boost/asio/buffer.hpp>
 #endif
 #include <cassert>
 #include <deque>
 #include <exception>
+#include <functional>
+#include <memory>
 #include <utility>
 
 /**
@@ -157,7 +158,7 @@ private:
     friend bool operator!=(const Chunk &lhs, const Chunk &rhs);
 
     // more than one buffer can share an underlying block, so use SharedPtr
-    boost::shared_array<data_type> underlyingBlock_;
+    std::shared_ptr<data_type[]> underlyingBlock_;
 
     data_type *readPos_;  ///< The first readable byte in the block
     data_type *writePos_; ///< The end of written data and start of free space

Reply via email to