-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove std::size_t from all header files. #23
Comments
Good looks is less important that correctness. The problem with not using std::size_t and std::time_t in headers, is that some compilers (including GCC) are lenient in this regard, so if we specify 'using std::size_t' in some header, but forget to include that header in some other header, then there is an error, but the error is probably not reported, and the error is hard to spot, when you are not looking for it. One solution might be to require that every header, that use size_t, must themselves specify 'using std::size_t'. This can be checked by a script. |
Use:
using std::size_t
using std::time_t
The text was updated successfully, but these errors were encountered: