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

jking pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git

commit e6e7e62981e285d6d7e023a618be3bafa514edae
Author: proller <prol...@users.noreply.github.com>
AuthorDate: Mon Dec 10 16:45:06 2018 +0300

    Correct c++17 definition
---
 lib/cpp/src/thrift/transport/TSocketPool.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/cpp/src/thrift/transport/TSocketPool.cpp 
b/lib/cpp/src/thrift/transport/TSocketPool.cpp
index 2a983e3..b5cfe26 100644
--- a/lib/cpp/src/thrift/transport/TSocketPool.cpp
+++ b/lib/cpp/src/thrift/transport/TSocketPool.cpp
@@ -189,7 +189,7 @@ void TSocketPool::open() {
   }
 
   if (randomize_ && numServers > 1) {
-#if __cplusplus >= 201500L // c++17
+#if __cplusplus >= 201703L
     std::random_device rng;
     std::mt19937 urng(rng());
     std::shuffle(servers_.begin(), servers_.end(), urng);

Reply via email to