Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AVRO-4102: [C++] Remove boost::shared_array #3273

Merged
merged 3 commits into from
Dec 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading