cpp-redis / cpp_redis

C++11 Lightweight Redis client: async, thread-safe, no dependency, pipelining, multi-platform
MIT License
713 stars 198 forks source link

compiler warnings on implicit capture of "this" in client.cpp #118

Open yuvalif opened 1 year ago

yuvalif commented 1 year ago

when compiler as a submodule with g++ v11, i get many of these compiler warnings;

sources/core/client.cpp:...:19: note: add explicit ‘this’ or ‘*this’ capture
sources/core/client.cpp: In lambda function:
sources/core/client.cpp:...:19: warning: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20 [-Wdeprecated]