This repository was archived by the owner on Apr 25, 2026. It is now read-only.
Commit 66a74d2
COMP: Avoid single value vector constructor
Implicit conversion of a single scalar value to a container (which would
_fill_ the container by the scalar value) is discouraged. With ITK 5.3,
when having `ITK_LEGACY_REMOVE=ON`, the constructors of `Point`,
`RGBPixel`, `RGBAPixel`, and `Vector` that accept a single scalar value
as argument are declared `explicit`. ITK 5.3 has included a preferable
alternative to these constructors:
`itk::MakeFilled<ContainerType>(value)`.1 parent b66464f commit 66a74d2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
480 | | - | |
| 480 | + | |
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| |||
0 commit comments