Skip to content

Commit

Permalink
AVRO-4102: [C++] Remove boost::shared_array
Browse files Browse the repository at this point in the history
  • Loading branch information
wgtmac committed Dec 27, 2024
1 parent 34ce192 commit 9ad774a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lang/c++/include/avro/buffer/detail/BufferDetail.hh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#define avro_BufferDetail_hh__

#include <boost/function.hpp>
#include <boost/shared_array.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/static_assert.hpp>
#include <boost/utility.hpp>
Expand All @@ -31,6 +30,7 @@
#include <cassert>
#include <deque>
#include <exception>
#include <memory>

/**
* \file BufferDetail.hh
Expand Down Expand Up @@ -161,7 +161,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 9ad774a

Please sign in to comment.