Skip to content

Commit

Permalink
Array: remove wrong constructor
Browse files Browse the repository at this point in the history
The NumericVectorWithOffset constructor would only work when T=NUMBER
  • Loading branch information
KrisThielemans committed Aug 24, 2023
1 parent 3ebe1e7 commit 3d33555
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
5 changes: 1 addition & 4 deletions src/include/stir/NumericVectorWithOffset.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Copyright (C) 2000 PARAPET partners
Copyright (C) 2000 - 2005-06-03, Hammersmith Imanet Ltd
Copyright (C) 2011-07-01 - 2012, Kris Thielemans
Copyright (C) 2020, 2023 UCL
Copyright (C) 2020, 2023 University College London
This file is part of STIR.
SPDX-License-Identifier: Apache-2.0 AND License-ref-PARAPET-license
Expand Down Expand Up @@ -60,9 +60,6 @@ class NumericVectorWithOffset : public VectorWithOffset<T>
//! Construct a NumericVectorWithOffset of elements with offset \c min_index
inline NumericVectorWithOffset(const int min_index, const int max_index);

//! Construct a NumericVectorWithOffset of elements with offset \c min_index pointing to \c data_ptr
inline NumericVectorWithOffset(const int min_index, const int max_index, elemT * const data_ptr);

//! Constructor from an object of this class' base_type
inline NumericVectorWithOffset(const VectorWithOffset<T>& t);

Expand Down
6 changes: 0 additions & 6 deletions src/include/stir/NumericVectorWithOffset.inl
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ NumericVectorWithOffset<T, NUMBER>::NumericVectorWithOffset(const int min_index,
: base_type(min_index, max_index)
{}

template <class T, class NUMBER>
inline
NumericVectorWithOffset<T, NUMBER>::NumericVectorWithOffset(const int min_index, const int max_index, NUMBER * const data_ptr)
: base_type(min_index, max_index, data_ptr)
{}

template <class T, class NUMBER>
NumericVectorWithOffset<T, NUMBER>::
NumericVectorWithOffset(const VectorWithOffset<T>& t)
Expand Down

0 comments on commit 3d33555

Please sign in to comment.