STYLE: add deprecated message to NamedEnum constructor
- this class really should not be used at all anymore. Add a message so people recognize can find any occurrences.
This commit is contained in:
parent
8071020518
commit
00cbf5564b
@ -82,6 +82,12 @@ const Foam::Enum<int> otherNames2
|
||||
|
||||
std::array<const char*, 2> myarray{ "false", "true" };
|
||||
|
||||
|
||||
// Verify compile-time warnings
|
||||
// #include "NamedEnum.H"
|
||||
// const Foam::NamedEnum<testing::option, 2> bad_legacy;
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
// Main program:
|
||||
|
||||
|
@ -99,7 +99,8 @@ public:
|
||||
// Constructors
|
||||
|
||||
//- Construct from names
|
||||
NamedEnum();
|
||||
NamedEnum()
|
||||
FOAM_DEPRECATED_FOR(2017-05, "Enum instead of using NamedEnum");
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
Loading…
Reference in New Issue
Block a user