2
0
mirror of https://github.com/boostorg/redis.git synced 2026-01-19 04:42:09 +00:00

Ports to C++14.

This commit is contained in:
Marcelo Zimbres
2022-04-05 16:39:13 +02:00
parent 379da7a340
commit 5c23299a8a
40 changed files with 272 additions and 290 deletions

View File

@@ -36,13 +36,13 @@ std::string toupper(std::string s)
std::vector<std::string>
get_cmd_names(std::vector<node<std::string>> const& resp)
{
if (std::empty(resp)) {
if (resp.empty()) {
std::cerr << "Response is empty." << std::endl;
return {};
}
std::vector<std::string> ret;
for (auto i = 0ULL; i < std::size(resp); ++i) {
for (auto i = 0ULL; i < resp.size(); ++i) {
if (resp.at(i).depth == 1)
ret.push_back(resp.at(i + 1).value);
}