Skip to content

Commit f5ab3b9

Browse files
authored
Small compilation fixes for GCC 6.3 (apache#470)
1 parent 10ac6c1 commit f5ab3b9

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

pulsar-client-cpp/lib/ObjectPool.h

+1
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ class Allocator {
152152
};
153153

154154
static boost::thread_specific_ptr<Impl> implPtr_;
155+
typedef T value_type;
155156
typedef size_t size_type;
156157
typedef T* pointer;
157158
typedef const void* const_pointer;

pulsar-client-cpp/lib/SharedBuffer.h

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#ifndef LIB_SHARED_BUFFER_H_
1818
#define LIB_SHARED_BUFFER_H_
1919

20+
#include <boost/array.hpp>
2021
#include <boost/asio.hpp>
2122
#include <boost/make_shared.hpp>
2223
#include <boost/shared_ptr.hpp>

pulsar-client-cpp/tests/ConsumerStatsTest.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void partitionedCallbackFunction(Result result, BrokerConsumerStats brokerConsum
4545
latch.countdown();
4646
}
4747

48-
void simpleCallbackFunction(Result result, BrokerConsumerStats& brokerConsumerStats, Result expectedResult,
48+
void simpleCallbackFunction(Result result, BrokerConsumerStats brokerConsumerStats, Result expectedResult,
4949
uint64_t expectedBacklog, ConsumerType expectedConsumerType) {
5050
LOG_DEBUG(brokerConsumerStats);
5151
ASSERT_EQ(result, expectedResult);

0 commit comments

Comments
 (0)