Skip to content

Commit

Permalink
STYLE: Pefer = default to explicitly trivial implementations.
Browse files Browse the repository at this point in the history
This check replaces default bodies of special member functions with
= default;. The explicitly defaulted function declarations enable more
opportunities in optimization, because the compiler might treat
explicitly defaulted functions as trivial.

Additionally, the C++11 use of = default more clearly expreses the
intent for the special member functions.

Left behind in commit 7d47862.
  • Loading branch information
jhlegarreta committed Mar 19, 2019
1 parent a30652f commit 9160b83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/itkMetamorphosisImageRegistrationMethodv4.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ public ImageToImageFilter<TInputImage, TOutputImage>


protected:
ConstantImageFilter(){}
~ConstantImageFilter(){}
ConstantImageFilter() = default;
~ConstantImageFilter() override = default;

/** Does the real work. */
void DynamicThreadedGenerateData(const typename OutputImageType::RegionType& outputRegionForThread) override
Expand Down

0 comments on commit 9160b83

Please sign in to comment.