{
memcached_return_t rc= memcached_set(memc_,
key.c_str(), key.length(),
- &value[0], value.size(),
+ value.data(), value.size(),
expiration, flags);
return memcached_success(rc);
}
time_t expiration,
uint32_t flags)
{
- bool retval= true;
std::map<const std::string, std::vector<char> >::const_iterator it= key_value_map.begin();
while (it != key_value_map.end())
{
- retval= set(it->first, it->second, expiration, flags);
- if (retval == false)
+ if (!set(it->first, it->second, expiration, flags))
{
// We should tell the user what the key that failed was
return false;