Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Use const instead of #define where possible #23

Open
rmhrisk opened this issue Feb 5, 2016 · 0 comments
Open

Use const instead of #define where possible #23

rmhrisk opened this issue Feb 5, 2016 · 0 comments
Assignees

Comments

@rmhrisk
Copy link
Contributor

rmhrisk commented Feb 5, 2016

In C++ const enforces type checking in expressions while the #define constants are just expanded. It would be better to switch most if not all of our #define to const.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants