@@ -96,16 +96,17 @@ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/path/to/hiredis -DCMAKE_IN
96
96
* redis-plus-plus* has been fully tested with the following compilers:
97
97
98
98
```
99
- gcc version 4.8.5 20150623 (Red Hat 4.8.5-36 ) (GCC)
99
+ gcc version 4.8.5 20150623 (Red Hat 4.8.5-39 ) (GCC)
100
100
gcc version 5.5.0 20171010 (Ubuntu 5.5.0-12ubuntu1)
101
101
gcc version 6.5.0 20181026 (Ubuntu 6.5.0-2ubuntu1~18.04)
102
- gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)
102
+ gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
103
+ gcc version 8.3.0 (Ubuntu 8.3.0-6ubuntu1~18.04.1)
103
104
clang version 3.9.1-19ubuntu1 (tags/RELEASE_391/rc2)
104
105
clang version 4.0.1-10 (tags/RELEASE_401/final)
105
106
clang version 5.0.1-4 (tags/RELEASE_501/final)
106
107
clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
107
108
clang version 7.0.0-3~ubuntu0.18.04.1 (tags/RELEASE_700/final)
108
- Apple LLVM version 10 .0.0 (clang-1000.11.45.5 )
109
+ Apple clang version 11 .0.0 (clang-1100.0.33.8 )
109
110
```
110
111
111
112
After compiling with cmake, you'll get a test program in * compile/test* directory: * compile/test/test_redis++* .
@@ -295,7 +296,8 @@ try {
295
296
redis.hgetall(" hash" , std::inserter(m, m.begin()));
296
297
297
298
// Get value only.
298
- std::vector<std::string> vals;
299
+ // NOTE: since field might NOT exist, so we need to parse it to OptionalString.
300
+ std::vector<OptionalString> vals;
299
301
redis.hmget(" hash" , {"field1", "field2"}, std::back_inserter(vals));
300
302
301
303
// ***** SET commands *****
0 commit comments