-
Notifications
You must be signed in to change notification settings - Fork 35
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
[Trivial] Fix type used for array init #1170
base: develop
Are you sure you want to change the base?
Conversation
Good catch. Surprised we didn't see that before... |
I guess that's why the |
Pretty sure the following will work: constexpr int VNDIM = OutputUtils::VarInfo::VNDIM; will try it and push. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -47,7 +47,7 @@ namespace OutputUtils { | |||
// Helper struct containing some information about a variable | |||
struct VarInfo { | |||
public: | |||
static constexpr int VNDIM = MAX_VARIABLE_DIMENSION; | |||
static constexpr const int VNDIM = MAX_VARIABLE_DIMENSION; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't the extra const
here redundant given that it is already constexpr
?
PR Summary
Clang just warned me about this. Apparently this was introduced because of clang (2fcd219).
Let's see what CI says (haven't tested locally)
PR Checklist