¡@

Home 

c++ Programming Glossary: binary_flag

How could my code tell a compile-time constant versus a variable?

http://stackoverflow.com/questions/6939103/how-could-my-code-tell-a-compile-time-constant-versus-a-variable

constant versus a variable Here's my problem. I have a BINARY_FLAG macro #define BINARY_FLAG n static_cast DWORD 1 n Which can.. Here's my problem. I have a BINARY_FLAG macro #define BINARY_FLAG n static_cast DWORD 1 n Which can be used either like this constant.. like this constant scenario static const SomeConstant BINARY_FLAG 5 or like this variable scenario for int i 0 i 10 i DWORD flag..