From 703d57ed5806beb7cd3d6d09911271470ab2a7e2 Mon Sep 17 00:00:00 2001 From: sewenew Date: Mon, 7 Oct 2024 12:58:25 +0800 Subject: [PATCH] fix c++11 compiler warning --- test/src/sw/redis++/async_test.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/src/sw/redis++/async_test.h b/test/src/sw/redis++/async_test.h index 7d2bbb7a..7d428703 100644 --- a/test/src/sw/redis++/async_test.h +++ b/test/src/sw/redis++/async_test.h @@ -200,7 +200,7 @@ void AsyncTest::_test_list() { }); _wait(); - auto keys = std::initializer_list{src, dest}; + auto keys = {src, dest}; auto lmpop_res = _redis.template lmpop>(keys.begin(), keys.end(), ListWhence::LEFT).get(); REDIS_ASSERT(lmpop_res && lmpop_res->first == dest && lmpop_res->second.size() == 1, "failed to test async list: lmpop");