You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace 513 PrintSelf NumericTraits-cast call sites across
221 files in Modules/ with calls to itk::print_helper::PrintNumericTrait.
The conversion targets only the canonical standalone-statement form
of the boilerplate
os << indent << "NAME: "
<< static_cast<typename NumericTraits<TYPE>::PrintType>(EXPR)
<< std::endl;
in 1- and 2-line variants, with or without the typename keyword and
with or without the itk:: namespace qualifier. Method-call
expressions (this->GetX()) are handled. Chained streaming
statements that emit multiple members from a single os<<...
expression are intentionally not rewritten — those would not be a
drop-in replacement and are easier to leave under reviewer
discretion.
The cast-through-NumericTraits is preserved for char-family
integer types (rendered numerically) and elided for every other
type by the helper's constexpr branch. No observable behavior
change at runtime.
Co-Authored-By: Jon Haitz Legarreta Gorroño <jhlegarreta@users.noreply.github.com>
0 commit comments