Skip to content

Commit

Permalink
Replaced boost::array with std::array (apache#3507)
Browse files Browse the repository at this point in the history
  • Loading branch information
merlimat authored Feb 2, 2019
1 parent a98184c commit a12b2b9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion pulsar-client-cpp/lib/ClientConnection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

#include "PulsarApi.pb.h"

#include <boost/array.hpp>
#include <iostream>
#include <algorithm>
#include <boost/date_time/posix_time/posix_time.hpp>
Expand Down
6 changes: 3 additions & 3 deletions pulsar-client-cpp/lib/SharedBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
#ifndef LIB_SHARED_BUFFER_H_
#define LIB_SHARED_BUFFER_H_

#include <boost/array.hpp>
#include <boost/asio.hpp>

#include <array>
#include <vector>

namespace pulsar {
Expand Down Expand Up @@ -223,8 +223,8 @@ class CompositeSharedBuffer {
const boost::asio::const_buffer* end() const { return begin() + Size; }

private:
boost::array<SharedBuffer, Size> sharedBuffers_;
boost::array<boost::asio::const_buffer, Size> asioBuffers_;
std::array<SharedBuffer, Size> sharedBuffers_;
std::array<boost::asio::const_buffer, Size> asioBuffers_;
};

typedef CompositeSharedBuffer<2> PairSharedBuffer;
Expand Down
4 changes: 3 additions & 1 deletion pulsar-client-cpp/lib/stats/ProducerStatsImpl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@

#include <lib/LogUtils.h>

#include <array>

namespace pulsar {
DECLARE_LOG_OBJECT();

static const boost::array<double, 4> probs = {0.5, 0.9, 0.99, 0.999};
static const std::array<double, 4> probs = {0.5, 0.9, 0.99, 0.999};

std::string ProducerStatsImpl::latencyToString(const LatencyAccumulator& obj) {
boost::accumulators::detail::extractor_result<
Expand Down
1 change: 0 additions & 1 deletion pulsar-client-cpp/lib/stats/ProducerStatsImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include <boost/accumulators/statistics.hpp>
#include <boost/accumulators/framework/accumulator_set.hpp>
#include <boost/accumulators/statistics/extended_p_square.hpp>
#include <boost/array.hpp>

#include <boost/date_time/local_time/local_time.hpp>
#include <memory>
Expand Down

0 comments on commit a12b2b9

Please sign in to comment.