From 07fbc01cd4fe88a39dfee545560b72262d692005 Mon Sep 17 00:00:00 2001 From: Gang Wu Date: Mon, 30 Dec 2024 03:57:21 +0800 Subject: [PATCH] AVRO-4102: [C++] Remove boost::shared_array (#3273) * AVRO-4102: [C++] Remove boost::shared_array * add #include --------- Co-authored-by: Thiruvalluvan M G --- 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 1b7663afc04..56e86c8a229 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 #ifdef HAVE_BOOST_ASIO #include #endif #include #include #include +#include +#include #include /** @@ -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 underlyingBlock_; + std::shared_ptr underlyingBlock_; data_type *readPos_; ///< The first readable byte in the block data_type *writePos_; ///< The end of written data and start of free space