Is it better to use static const vars than #define preprocessor? Or maybe it depends on the context?
What are advantages/disadvantages for
Usually you should prefer static consts. It has no disadvantage. The prprocessor should mainly be used for conditional compilation (and sometimes for really dirty trics maybe).