Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion CMake/ITKSetStandardCompilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ function(check_compiler_warning_flags c_warning_flags_var cxx_warning_flags_var)
# Check this list on C++ compiler only
set(
cxx_flags
-Wno-deprecated
-Wno-invalid-offsetof
-Wno-undefined-var-template # suppress invalid warning when explicitly instantiated in another translation unit
-Woverloaded-virtual
Expand Down
8 changes: 4 additions & 4 deletions Modules/Core/Common/test/itkAggregateTypesGTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class CommonTests
const AggregateType knownAll7s{ { 7, 7, 7, 7 } };
const AggregateType knownAll6s{ { 6, 6, 6, 6 } };

EXPECT_EQ(std::is_pod_v<AggregateType>, true);
EXPECT_EQ((std::is_standard_layout_v<AggregateType> && std::is_trivial_v<AggregateType>), true);
EXPECT_EQ(AggregateType::Dimension, 4);

AggregateType index1 = { { 10, 20, 30, 40 } };
Expand Down Expand Up @@ -324,7 +324,7 @@ TEST(Specialized, IndexOffset)

TEST(Specialized, Index)
{
EXPECT_EQ(std::is_pod_v<itk::Index<13>>, true);
EXPECT_EQ((std::is_standard_layout_v<itk::Index<13>> && std::is_trivial_v<itk::Index<13>>), true);
EXPECT_EQ(itk::Index<2>::GetIndexDimension(), 2);

using IndexType = itk::Index<4>;
Expand All @@ -348,7 +348,7 @@ TEST(Specialized, Index)
TEST(Specialized, Offset)
{

EXPECT_EQ(std::is_pod_v<itk::Offset<13>>, true);
EXPECT_EQ((std::is_standard_layout_v<itk::Offset<13>> && std::is_trivial_v<itk::Offset<13>>), true);
EXPECT_EQ(itk::Offset<13>::GetOffsetDimension(), 13);

using OffsetType = itk::Offset<4>;
Expand All @@ -371,7 +371,7 @@ TEST(Specialized, Offset)

TEST(Specialized, Size)
{
EXPECT_EQ(std::is_pod_v<itk::Size<13>>, true);
EXPECT_EQ((std::is_standard_layout_v<itk::Size<13>> && std::is_trivial_v<itk::Size<13>>), true);
EXPECT_EQ(itk::Size<7>::GetSizeDimension(), 7);

using SizeType = itk::Size<4>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ class Point1D

Point1D(const Point1D & point) = default;

Point1D &
operator=(const Point1D &) = default;

[[nodiscard]] double
getX() const
{
Expand Down
12 changes: 12 additions & 0 deletions Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMeshBaseIterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ class ITK_TEMPLATE_EXPORT QuadEdgeMeshIterator : public QuadEdgeMeshBaseIterator

QuadEdgeMeshIterator(const QuadEdgeMeshIterator &) = default;

Self &
operator=(const Self &) = default;

~QuadEdgeMeshIterator() override = default;

QuadEdgeType *
Expand Down Expand Up @@ -281,6 +284,9 @@ class ITK_TEMPLATE_EXPORT QuadEdgeMeshIteratorGeom : public QuadEdgeMeshIterator

QuadEdgeMeshIteratorGeom(const QuadEdgeMeshIteratorGeom &) = default;

QuadEdgeMeshIteratorGeom &
operator=(const QuadEdgeMeshIteratorGeom &) = default;

OriginRefType
operator*()
{
Expand Down Expand Up @@ -314,6 +320,9 @@ class ITK_TEMPLATE_EXPORT QuadEdgeMeshConstIterator : public QuadEdgeMeshBaseIte

QuadEdgeMeshConstIterator(const QuadEdgeMeshConstIterator &) = default;

Self &
operator=(const Self &) = default;

~QuadEdgeMeshConstIterator() override = default;

Self &
Expand Down Expand Up @@ -361,6 +370,9 @@ class ITK_TEMPLATE_EXPORT QuadEdgeMeshConstIteratorGeom : public QuadEdgeMeshCon

QuadEdgeMeshConstIteratorGeom(const QuadEdgeMeshConstIteratorGeom &) = default;

Self &
operator=(const Self &) = default;

~QuadEdgeMeshConstIteratorGeom() override = default;

Self &
Expand Down
6 changes: 3 additions & 3 deletions Modules/IO/GE/src/Ge5xHdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -875,9 +875,9 @@ enum GE_5X_SCAN_TYPE_ENUM
enum GE_RELATIVE_STARTS
{
GENESIS_SU_HDR_START = 0,
GENESIS_EX_HDR_START = GENESIS_SU_HDR_LEN,
GENESIS_SE_HDR_START = GENESIS_EX_HDR_START + GENESIS_EX_HDR_LEN,
GENESIS_IM_HDR_START = GENESIS_SE_HDR_START + GENESIS_SE_HDR_LEN,
GENESIS_EX_HDR_START = static_cast<int>(GENESIS_SU_HDR_LEN),
GENESIS_SE_HDR_START = GENESIS_EX_HDR_START + static_cast<int>(GENESIS_EX_HDR_LEN),
GENESIS_IM_HDR_START = GENESIS_SE_HDR_START + static_cast<int>(GENESIS_SE_HDR_LEN),
GENESIS_IMG_HDR_START = 0
};

Expand Down
2 changes: 1 addition & 1 deletion Modules/IO/NIFTI/src/itkNiftiImageIO.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1665,7 +1665,7 @@ NiftiImageIO::SetImageIOOrientationFromNIfTI(unsigned short dims, double spacing
// Commonly the 4x4 double precision dicom information is stored in
// the 4x4 single precision sform fields, and that original representation
// is converted (with lossy conversion) into the qform representation.
const bool qform_sform_are_similar = [=]() -> bool {
const bool qform_sform_are_similar = [this]() -> bool {
const vnl_matrix_fixed<float, 4, 4> sto_xyz{ &(m_Holder->ptr->sto_xyz.m[0][0]) };
const vnl_matrix_fixed<float, 4, 4> qto_xyz{ &(m_Holder->ptr->qto_xyz.m[0][0]) };

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ class GDCM_EXPORT DataSet
/// Returns if the dataset is empty
bool IsEmpty() const { return DES.empty(); }

DataSet() = default;

DataSet(DataSet const &) = default;

DataSet& operator=(DataSet const &)
= default;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ class GDCM_EXPORT Item : public DataElement
NestedDataSet = val.NestedDataSet;
}

Item& operator=(Item const &) = default;

template <typename TDE, typename TSwap>
std::istream &Read(std::istream &is) {
// Superclass
Expand Down
Loading