Fix link issues when building in clang

This commit is contained in:
Matias Fontanini
2017-10-02 10:30:28 -07:00
parent 17da880854
commit 5889c322c2
2 changed files with 7 additions and 3 deletions

View File

@@ -43,9 +43,9 @@ namespace cppkafka {
class CPPKAFKA_API BackoffPerformer { class CPPKAFKA_API BackoffPerformer {
public: public:
using TimeUnit = std::chrono::milliseconds; using TimeUnit = std::chrono::milliseconds;
static constexpr TimeUnit DEFAULT_INITIAL_BACKOFF{100}; static const TimeUnit DEFAULT_INITIAL_BACKOFF;
static constexpr TimeUnit DEFAULT_BACKOFF_STEP{50}; static const TimeUnit DEFAULT_BACKOFF_STEP;
static constexpr TimeUnit DEFAULT_MAXIMUM_BACKOFF{1000}; static const TimeUnit DEFAULT_MAXIMUM_BACKOFF;
/** /**
* The backoff policy to use * The backoff policy to use

View File

@@ -34,6 +34,10 @@ using std::min;
namespace cppkafka { namespace cppkafka {
const BackoffPerformer::TimeUnit BackoffPerformer::DEFAULT_INITIAL_BACKOFF{100};
const BackoffPerformer::TimeUnit BackoffPerformer::DEFAULT_BACKOFF_STEP{50};
const BackoffPerformer::TimeUnit BackoffPerformer::DEFAULT_MAXIMUM_BACKOFF{1000};
BackoffPerformer::BackoffPerformer() BackoffPerformer::BackoffPerformer()
: initial_backoff_(DEFAULT_INITIAL_BACKOFF), : initial_backoff_(DEFAULT_INITIAL_BACKOFF),
backoff_step_(DEFAULT_BACKOFF_STEP), maximum_backoff_(DEFAULT_MAXIMUM_BACKOFF), backoff_step_(DEFAULT_BACKOFF_STEP), maximum_backoff_(DEFAULT_MAXIMUM_BACKOFF),