Skip to content

Commit 839eda0

Browse files
committed
STYLE: Prefer = delete to explicitly trivial implementations
This check replaces undefined special member functions with = delete;. The explicitly deleted function declarations enable more opportunities in optimization, because the compiler might treat explicitly delted functions as noops. Additionally, the C++11 use of = delete more clearly expreses the intent for the special member functions.
1 parent 5bc249f commit 839eda0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/itkAnalyzeObjectLabelMapImageIOFactory.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ class ITK_EXPORT AnalyzeObjectLabelMapImageIOFactory : public ObjectFactoryBase
6767
PrintSelf(std::ostream & os, Indent indent) const override;
6868

6969
private:
70-
AnalyzeObjectLabelMapImageIOFactory(const Self &); // purposely not implemented
70+
AnalyzeObjectLabelMapImageIOFactory(const Self &) = delete; // purposely not implemented
7171
void
72-
operator=(const Self &); // purposely not implemented
72+
operator=(const Self &) = delete; // purposely not implemented
7373
};
7474

7575
} // end namespace itk

0 commit comments

Comments
 (0)