Skip to content
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

Added namespace-scope definitions for constexpr static members #603

Merged
merged 3 commits into from
Feb 23, 2016

Conversation

mkoval
Copy link
Collaborator

@mkoval mkoval commented Feb 2, 2016

This is necessary to ODR-use those member variables. See this StackOverflow post for an explanation.

I honestly think this is quite bizarre - I never knew this was necessary for template classes. However, it did resolve my linking problems. 😄

@jslee02
Copy link
Member

jslee02 commented Feb 2, 2016

I honestly think this is quite bizarre - I never knew this was necessary for template classes.

Yeah, me neither. In that sense, it would be helpful to add simple note why we need this. Beside on note, 👍

@mxgrey
Copy link
Member

mxgrey commented Feb 2, 2016

C++ just really loves throwing those curveballs. 👍 to the changes and 👍 to adding a developer's comment to explain the added declaration/definition (declinition?).

@mkoval
Copy link
Collaborator Author

mkoval commented Feb 22, 2016

I added the requested comments.

jslee02 added a commit that referenced this pull request Feb 23, 2016
Added namespace-scope definitions for constexpr static members
@jslee02 jslee02 merged commit 910f78e into dartsim:master Feb 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants