BSLMA_USESBSLMAALLOCATOR_DEPRECATE_IF

Produce a deprecation warning if the specified COND is true.

Synopsis

Declared in <bslma_usesbslmaallocator.h>

#define BSLMA_USESBSLMAALLOCATOR_DEPRECATE_IF(COND, MSG)

Description

On platforms that support a deprecation attribute, produce a deprecation warning if the specified COND is true, otherwise do nothing. The specified MSG is ignored, but must be a string literal and should describe why the condition (if true) is undesirable.

Parameters

NameDescription
CONDcondition that triggers the deprecation warning when true
MSGstring literal describing why the condition is undesirable