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

August 2018
M T W T F S S
« Aug    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Blog Stats

  • 28,711 hits
Advertisements