mirror of
https://github.com/boostorg/multi_array.git
synced 2026-02-08 11:02:09 +00:00
Merge pull request #41 from GreenGary/develop
Fix #39 Replace deprecated boost::array::assign with boost::array::fill
This commit is contained in:
@@ -103,7 +103,7 @@ public:
|
||||
boost::function_requires<
|
||||
CollectionConcept<ExtentList> >();
|
||||
|
||||
index_base_list_.assign(0);
|
||||
index_base_list_.fill(0);
|
||||
init_multi_array_ref(extents.begin());
|
||||
}
|
||||
|
||||
@@ -340,7 +340,7 @@ public:
|
||||
init_multi_array_ref(extents);
|
||||
} else {
|
||||
boost::array<index,NumDims> extent_list;
|
||||
extent_list.assign(0);
|
||||
extent_list.fill(0);
|
||||
init_multi_array_ref(extent_list.begin());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,14 +48,14 @@ namespace boost {
|
||||
for (size_type i=0; i != NumDims; ++i) {
|
||||
ordering_[i] = NumDims - 1 - i;
|
||||
}
|
||||
ascending_.assign(true);
|
||||
ascending_.fill(true);
|
||||
}
|
||||
|
||||
general_storage_order(const fortran_storage_order&) {
|
||||
for (size_type i=0; i != NumDims; ++i) {
|
||||
ordering_[i] = i;
|
||||
}
|
||||
ascending_.assign(true);
|
||||
ascending_.fill(true);
|
||||
}
|
||||
|
||||
size_type ordering(size_type dim) const { return ordering_[dim]; }
|
||||
|
||||
@@ -90,7 +90,7 @@ public:
|
||||
}
|
||||
|
||||
void reindex(index value) {
|
||||
index_base_list_.assign(value);
|
||||
index_base_list_.fill(value);
|
||||
origin_offset_ =
|
||||
this->calculate_indexing_offset(stride_list_,index_base_list_);
|
||||
}
|
||||
@@ -231,7 +231,7 @@ public: // should be protected
|
||||
const boost::array<Index,NumDims>& strides):
|
||||
base_(base), origin_offset_(0) {
|
||||
|
||||
index_base_list_.assign(0);
|
||||
index_base_list_.fill(0);
|
||||
|
||||
// Get the extents and strides
|
||||
boost::detail::multi_array::
|
||||
|
||||
Reference in New Issue
Block a user