Skip to content

Commit 49ed4e0

Browse files
committed
STYLE: ITK_FUTURE_LEGACY_REMOVE/deprecate MultiThreaderType aliases
Asked users to use `itk::MultiThreaderBase` directly.
1 parent c4f4c5f commit 49ed4e0

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

Modules/Core/Common/include/itkProcessObject.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,12 @@ class ITKCommon_EXPORT ProcessObject : public Object
164164
/** STL array of data object names */
165165
using NameArray = std::vector<DataObjectIdentifierType>;
166166

167-
/** Type of general multi-threader interface */
168-
using MultiThreaderType = MultiThreaderBase;
167+
#ifndef ITK_FUTURE_LEGACY_REMOVE
168+
/** Type of general multi-threader interface
169+
* \deprecated Please use `itk::MultiThreaderBase` directly.
170+
*/
171+
using MultiThreaderType [[deprecated("Please use `itk::MultiThreaderBase` directly.")]] = MultiThreaderBase;
172+
#endif
169173

170174
/** \brief Return an array with the names of the inputs defined.
171175
*

Modules/Registration/Common/include/itkImageToImageMetric.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,11 @@ class ITK_TEMPLATE_EXPORT ImageToImageMetric : public SingleValuedCostFunction
349349
itkGetConstReferenceMacro(UseCachingOfBSplineWeights, bool);
350350
itkBooleanMacro(UseCachingOfBSplineWeights);
351351
/** @ITKEndGrouping */
352-
using MultiThreaderType = MultiThreaderBase;
352+
353+
#ifndef ITK_FUTURE_LEGACY_REMOVE
354+
using MultiThreaderType [[deprecated("Please use `itk::MultiThreaderBase` directly.")]] = MultiThreaderBase;
355+
#endif
356+
353357
/** Get the Threader. */
354358
/** @ITKStartGrouping */
355359
itkGetModifiableObjectMacro(Threader, MultiThreaderBase);

0 commit comments

Comments
 (0)