Skip to content

WIP: ITKv5 initial conversion 20171210#37

Closed
hjmjohnson wants to merge 7 commits intoInsightSoftwareConsortium:masterfrom
BRAINSia:ITKv5_InitialConversion_20171210
Closed

WIP: ITKv5 initial conversion 20171210#37
hjmjohnson wants to merge 7 commits intoInsightSoftwareConsortium:masterfrom
BRAINSia:ITKv5_InitialConversion_20171210

Conversation

@hjmjohnson
Copy link
Member

WIP: Work In Progress not ready for merge

Merge request to test the CI system and to allow review of the patches.

@hjmjohnson hjmjohnson force-pushed the ITKv5_InitialConversion_20171210 branch 6 times, most recently from 9ce96d2 to a6a467f Compare January 16, 2018 01:37
@hjmjohnson hjmjohnson force-pushed the ITKv5_InitialConversion_20171210 branch 7 times, most recently from 7c6bfe0 to 0e8e2c7 Compare January 23, 2018 23:50
dzenanz and others added 7 commits January 25, 2018 15:26
Change-Id: I17b5d0f7c64e82ec241e83f9e3a89c36ed3aae08
git grep -l "ITK_DELETED_FUNCTION" |   fgrep -v itk_compiler_detection.h | fgrep -v itkMacro.h | fgrep -v CMakeLists.txt |fgrep -v .cmake |   xargs sed -i '' -e "s/ITK_DELETED_FUNCTION/= delete/g"

Change-Id: Idc84bf128df49db65cd5969457d7f58fefc560f1
git grep -l \"ITK_CONSTEXPR_VAR\" |   fgrep -v itk_compiler_detection.h | fgrep -v itkMacro.h | fgrep -v CMakeLists.txt |fgrep -v .cmake |   xargs sed -i '' -e \"s/ ITK_CONSTEXPR_VAR/ constexpr/g\"

Change-Id: I618ad84d057dfaf4933f575e44ae60118997b2e5
In C++11 ITK_COMPILER_CXX_CONSTEXPR is always true for all cases,
so remove conditional code.

Change-Id: I72feb725070cdc246bac706e67d13a39270ef7cf
Change-Id: Icc3ccaa9d4f7cb61a01a8d7c17346ae46bd6e952
Features removed or deprecated:

std::auto_ptr is deprecated, having been superseded by std::unique_ptr.
https://stackoverflow.com/questions/3451099/stdauto-ptr-to-stdunique-ptr

Function object base classes
(std::unary_function, std::binary_function), adapters to pointers to
functions and adapters to pointers to members, and binder classes are
all deprecated.

Both std::unary_function and std::binary_function are deprecated since
C++11 and removed without any replacement from C++17.
whole purpose of this commit is C++17 forward compatibility, which is
important for projects written in C++17 that use ITK and need to pass
according compiler flags for binary compatibility.

See also https://stackoverflow.com/questions/33114656/replacement-for-binary-function.

Change-Id: Ia7e1db579e8ac46935636ebfa5b73665dbf131a1
These scripts were found to be useful when migrating several
packages to C++11 and modern cmake conventions during the
ITKv5 transition.

Change-Id: Id44c61189039d1c72e07672f3320f578c5284f18
@hjmjohnson hjmjohnson force-pushed the ITKv5_InitialConversion_20171210 branch from 0e8e2c7 to 85ebfd9 Compare January 26, 2018 02:01
@hjmjohnson hjmjohnson closed this Feb 12, 2018
@hjmjohnson hjmjohnson deleted the ITKv5_InitialConversion_20171210 branch November 1, 2018 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants