This commit is contained in:
Gary Furnish 2016-01-13 16:12:17 +00:00
parent fc5fce4f4f
commit 62b063a272

View File

@ -1818,7 +1818,7 @@ public:
auto d = narrow_cast<size_type>(sizeof(OtherValueType) / sizeof(value_type)); auto d = narrow_cast<size_type>(sizeof(OtherValueType) / sizeof(value_type));
size_type size = this->bounds().total_size() / d; size_type size = this->bounds().total_size() / d;
return {(OtherValueType*) this->data(), size, return {const_cast<OtherValueType*>(reinterpret_cast<const OtherValueType*>(this->data())), size,
bounds_type{resize_extent(this->bounds().index_bounds(), d), bounds_type{resize_extent(this->bounds().index_bounds(), d),
resize_stride(this->bounds().strides(), d)}}; resize_stride(this->bounds().strides(), d)}};
} }