You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2022/03/17 22:08:37 UTC

[pulsar] branch branch-2.9 updated: [C++ Client] Add braces around initialization of subobject (#14735)

This is an automated email from the ASF dual-hosted git repository.

mmarshall pushed a commit to branch branch-2.9
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/branch-2.9 by this push:
     new 131b455  [C++ Client] Add braces around initialization of subobject (#14735)
131b455 is described below

commit 131b455adae0225377293c57a20f79cf473a330e
Author: Michael Marshall <mm...@apache.org>
AuthorDate: Thu Mar 17 16:34:38 2022 -0500

    [C++ Client] Add braces around initialization of subobject (#14735)
    
    (cherry picked from commit 3ff05b2c5084c73016dceeaee1235b4dbb837f6f)
---
 pulsar-client-cpp/lib/stats/ProducerStatsImpl.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pulsar-client-cpp/lib/stats/ProducerStatsImpl.cc b/pulsar-client-cpp/lib/stats/ProducerStatsImpl.cc
index af7ae4b..a3608e5 100644
--- a/pulsar-client-cpp/lib/stats/ProducerStatsImpl.cc
+++ b/pulsar-client-cpp/lib/stats/ProducerStatsImpl.cc
@@ -26,7 +26,7 @@
 namespace pulsar {
 DECLARE_LOG_OBJECT();
 
-static const std::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<