-
-
Notifications
You must be signed in to change notification settings - Fork 661
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Add C++17
[[nodiscard]]
to Image "Transform" member functions
It would usually be a mistake when a user would unintentionally ignore the return value of those member functions. Specifically, the overloads of `TransformPhysicalPointToIndex` and `TransformPhysicalPointToContinuousIndex` that have two parameters both return a `bool` value. If this return value can be ignored, it is preferable (for performance reasons) to call the corresponding overload that has one parameter instead. The compiler may now produce a warning when the return value of any of those member functions is unintentionally ignored.
- Loading branch information
1 parent
1d03697
commit 63d4354
Showing
3 changed files
with
22 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters