Skip to content

Commit

Permalink
AVRO-4102: [C++] Remove boost::shared_array (#3273)
Browse files Browse the repository at this point in the history
* AVRO-4102: [C++] Remove boost::shared_array

* add #include <functional>

---------

Co-authored-by: Thiruvalluvan M G <[email protected]>
  • Loading branch information
wgtmac and thiru-mg authored Dec 29, 2024
1 parent 25831a6 commit 07fbc01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lang/c++/include/avro/buffer/detail/BufferDetail.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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>

/**
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 07fbc01

Please sign in to comment.