cpp-redis / cpp_redis

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

Bugfix for C++17 #8

Closed GeoffHadlington closed 5 years ago

GeoffHadlington commented 5 years ago

Bracket operator of struct 'optional' has been replaced with a standard constructor. logger.hpp inclusion in reply.cpp. Change of optional to optional_t where struct used. enableIf template added to C++ branching in optional.hpp

GeoffHadlington commented 5 years ago

Tested this on my dev machine, and I believe this now works for both C++11 and C++17

GeoffHadlington commented 5 years ago

Small typo in the branch name (and a missing character in the fix.)