Skip to content

Commit 056409b

Browse files
committed
fix vs2019 bug. see #682
1 parent 03431f4 commit 056409b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/src/sw/redis++/stream_cmds_test.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ void StreamCmdsTest<RedisInstance>::_test_group_cmds() {
153153
{"f2", "v2"}
154154
};
155155
auto id = _redis.xadd(key, "*", attrs.begin(), attrs.end());
156-
auto keys = {std::make_pair(key, ">")};
156+
// explicitly declare variable type due to a VS 2019 bug. see #682 for detail.
157+
std::vector<std::pair<std::string, std::string>> keys = {std::make_pair(key, ">")};
157158

158159
Result result;
159160
_redis.xreadgroup(group,

0 commit comments

Comments
 (0)