Skip to content

Commit

Permalink
DOC: Mention changes scalar-to-container conversion in migration guide
Browse files Browse the repository at this point in the history
As suggested by Dženan Zukić.
  • Loading branch information
N-Dekker committed Mar 8, 2022
1 parent 1d36c63 commit 9ecef41
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Documentation/ITK5MigrationGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,12 @@ The namespece itself is only available in legacy mode. Some classes were renamed

Enumeration member names (`ITK_COORDINATE_UNKNOWN`, `ITK_COORDINATE_Right`, `ITK_COORDINATE_PrimaryMinor`, `ITK_COORDINATE_ORIENTATION_RIP` etc) are unchanged.

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)`.

Consolidated Vector Filter
--------------------------

Expand Down

0 comments on commit 9ecef41

Please sign in to comment.