diff --git a/utilities/document/json_document.cc b/utilities/document/json_document.cc index 99376d2b5..b8d178bb2 100644 --- a/utilities/document/json_document.cc +++ b/utilities/document/json_document.cc @@ -588,8 +588,8 @@ JSONDocument::const_item_iterator::~const_item_iterator() { JSONDocument::const_item_iterator::value_type JSONDocument::const_item_iterator::operator*() { - return {std::string(it_->getKeyStr(), it_->klen()), - JSONDocument(it_->value(), false)}; + return JSONDocument::const_item_iterator::value_type(std::string(it_->getKeyStr(), it_->klen()), + JSONDocument(it_->value(), false)); } JSONDocument::ItemsIteratorGenerator::ItemsIteratorGenerator(