Skip to content

Commit d8c2b2c

Browse files
make Array::grow/resize from baseclass private
We don't really want the user to use the 1D grow/resize functions, but in the previous commit they were exposed. So, make them private.
1 parent 0e405be commit d8c2b2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/include/stir/Array.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,6 @@ class Array : public NumericVectorWithOffset<Array<num_dimensions - 1, elemT>, e
203203
//! return the total number of elements in this array
204204
inline size_t size_all() const;
205205

206-
using base_type::grow;
207-
using base_type::resize;
208-
209206
//! change the array to a new range of indices, new elements are set to 0
210207
/*! Current behaviour is that when resizing to a smaller array, the same memory
211208
will be used. However, when growing any of the dimensions, a new Array
@@ -331,6 +328,9 @@ class Array : public NumericVectorWithOffset<Array<num_dimensions - 1, elemT>, e
331328
// Make sure that we can access init() recursively
332329
template <int num_dimensions2, class elemT2>
333330
friend class Array;
331+
332+
using base_type::grow;
333+
using base_type::resize;
334334
};
335335

336336
/**************************************************

0 commit comments

Comments
 (0)