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

Name

Description

COND

condition that triggers the deprecation warning when true

MSG

string literal describing why the condition is undesirable

Created with MrDocs