Access Enum from Class in Constructor Method C++ -




i working on audio project in c++ use enums organize code. code contains several classes conditional behavior based on value of mode variable, , useful have enums define these different modes (an example being have first order filter class, functions differently depending on whether mode set lowpass or highpass).

i set mode part of class's constructor cannot access enum inside class until have instantiated instance of class. right have enums defined outside each class in same .h file, i'd rather have them inside class organizational purposes. there way this, or perhaps practice achieve similar?





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -