Fixed end() iterator and also applied default copy-constructor instead of passing null handle in BasicMessageBuilder

This commit is contained in:
accelerated
2018-12-05 12:15:25 -05:00
parent 93e066a1c1
commit fe0c7e7dd5
3 changed files with 6 additions and 9 deletions

View File

@@ -154,7 +154,7 @@ private:
HeaderIterator(HeaderListType headers,
size_t index)
: header_list_(std::move(headers)),
header_(index == header_list_.size() ? HeaderType() : header_list_.at(index)),
header_(header_list_.empty() ? HeaderType() : header_list_.at(index)),
index_(index) {
}