Skip to content

Commit 07fbc01

Browse files
wgtmacthiru-mg
andauthored
AVRO-4102: [C++] Remove boost::shared_array (#3273)
* AVRO-4102: [C++] Remove boost::shared_array * add #include <functional> --------- Co-authored-by: Thiruvalluvan M G <thiru@apache.org>
1 parent 25831a6 commit 07fbc01

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lang/c++/include/avro/buffer/detail/BufferDetail.hh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@
1919
#ifndef avro_BufferDetail_hh__
2020
#define avro_BufferDetail_hh__
2121

22-
#include <boost/shared_array.hpp>
2322
#ifdef HAVE_BOOST_ASIO
2423
#include <boost/asio/buffer.hpp>
2524
#endif
2625
#include <cassert>
2726
#include <deque>
2827
#include <exception>
28+
#include <functional>
29+
#include <memory>
2930
#include <utility>
3031

3132
/**
@@ -157,7 +158,7 @@ private:
157158
friend bool operator!=(const Chunk &lhs, const Chunk &rhs);
158159

159160
// more than one buffer can share an underlying block, so use SharedPtr
160-
boost::shared_array<data_type> underlyingBlock_;
161+
std::shared_ptr<data_type[]> underlyingBlock_;
161162

162163
data_type *readPos_; ///< The first readable byte in the block
163164
data_type *writePos_; ///< The end of written data and start of free space

0 commit comments

Comments
 (0)