A Journey 2 Eternity

Archive for the ‘C++ Builder’ Category

We can deprecate a method, property, or even an entire class in C++ Builder, using the [[deprecated]] attribute. Deprecating an entity is a way of signalling to other developers that it should no longer be used, typically because there is another – more preferable – way of doing things.

When a deprecated entity is used in code, a compiler warning will be issued.

enum StatModelsType [[deprecated("Use StatisticalModelType instead.")]] {
smtNone = 0,
smtScanModel,
smtExFactoryModel,
smtOptimiserModel
};
Advertisements

Pages

Categories

October 2018
M T W T F S S
« Aug    
1234567
891011121314
15161718192021
22232425262728
293031  

Blog Stats

  • 29,011 hits
Advertisements