Resolve some conflicts before merging.

This commit is contained in:
Tsuda Kageyu 2015-11-19 09:27:15 +09:00
parent 10e1fcd686
commit e0f1151c5c

View File

@ -661,8 +661,9 @@ ByteVector::ReverseIterator ByteVector::rbegin()
ByteVector::ConstReverseIterator ByteVector::rbegin() const
{
// we need a const reference to the data vector so we can ensure the const version of rbegin() is called
const std::vector<char> &v = d->data->data;
// Workaround for the Solaris Studio 12.4 compiler.
// We need a const reference to the data vector so we can ensure the const version of rbegin() is called.
const std::vector<char> &v = *d->data;
return v.rbegin() + (v.size() - (d->offset + d->length));
}
@ -674,8 +675,9 @@ ByteVector::ReverseIterator ByteVector::rend()
ByteVector::ConstReverseIterator ByteVector::rend() const
{
// we need a const reference to the data vector so we can ensure the const version of rbegin() is called
const std::vector<char> &v = d->data->data;
// Workaround for the Solaris Studio 12.4 compiler.
// We need a const reference to the data vector so we can ensure the const version of rbegin() is called.
const std::vector<char> &v = *d->data;
return v.rbegin() + (v.size() - d->offset);
}