Print out a static "deprecate" warning message with a suggested correction when an particular enum identifier is used?
<p>In a C++ library used in many places in our collaboration, we have mistakenly defined multiple enums in the same lib namespace to define the constant values. An enum is a distinct type but not a distinct namespace. As a consequence all enum values end up in the same namespace. This is an open door to enum identifier collision and also inconvenient when using automatic completion. In order to solve this we are considering moving the different enums in distinct namespaces.</p>

<p>To easy evolution of code using this library we would like to be able to display at compile time a "deprecate" warning message suggesting the code change when the old enum identifiers are met in the code. </p>

<p>The following question and answers <a href="http://stackoverflow.com/questions/8936063/does-there-exist-a-static-warning">Does there exist a static_warning?</a> provide a way to define a deprecate warning when a condition is met. How could I achieve the same effect when an enum identifier shows up in user code ? </p>
