Skip to content

Commit f27ab3f

Browse files
Thompson, Darren (IM&T, Clayton)thewtex
authored andcommitted
COMP: Removed constructor template parameters from the VNL library
Removed template parameters from protected constructors in VNL class definitions to allow successful compilation to avoid the following error with gcc-11 C++20: error: expected unqualified-id before ')' token
1 parent dd893fa commit f27ab3f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Modules/ThirdParty/VNL/src/vxl/core/vnl/algo/vnl_svd_fixed.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class vnl_svd_fixed
163163
bool valid_; // false if the NETLIB call failed.
164164

165165
// Disallow assignment.
166-
vnl_svd_fixed<T,R,C>(vnl_svd_fixed<T,R,C> const &) { }
166+
vnl_svd_fixed(vnl_svd_fixed<T,R,C> const &) { }
167167
vnl_svd_fixed<T,R,C>& operator=(vnl_svd_fixed<T,R,C> const &) { return *this; }
168168
};
169169

Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_matrix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ class VNL_EXPORT vnl_matrix
735735
//--------------------------------------------------------------------------------
736736

737737
protected:
738-
vnl_matrix<T>( unsigned ext_num_rows, unsigned ext_num_cols,
738+
vnl_matrix( unsigned ext_num_rows, unsigned ext_num_cols,
739739
T * continuous_external_memory_block, bool manage_own_memory )
740740
: num_rows{ ext_num_rows}
741741
, num_cols{ ext_num_cols}

Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_vector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ class VNL_EXPORT vnl_vector
459459
set_data(datain, this->size(), LetArrayManageMemory);
460460
}
461461
protected:
462-
vnl_vector<T>( size_t ext_num_elmts, T * extdata, bool manage_own_memory )
462+
vnl_vector( size_t ext_num_elmts, T * extdata, bool manage_own_memory )
463463
: num_elmts{ ext_num_elmts }
464464
, data{ extdata }
465465
, m_LetArrayManageMemory{ manage_own_memory }

0 commit comments

Comments
 (0)