-
Notifications
You must be signed in to change notification settings - Fork 540
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 static specifier in DecisionTree unit test for C++14 compliance #3281
Remove static specifier in DecisionTree unit test for C++14 compliance #3281
Conversation
Replace "constexpr static" member variables in DecisionTree unit test fixture with "const" member variables for compliance with C++14, which otherwise requires that static data members be separately defined in a namespace scope if it is ODR-used
Oh, and for those wondering why this links at all in the non-debug build, it is because these are optimized as inline constants there. |
The failures do not seem to be related to this change. The failures were in:
I'll rerun and if everything seems alright, I'll submit issues for those two. |
rerun tests |
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
Bring in changes to avoid issue with stemmer test in CI
Merged in changes from 0.18 to eliminate failing test |
Codecov Report
@@ Coverage Diff @@
## branch-0.18 #3281 +/- ##
===============================================
+ Coverage 71.45% 71.69% +0.23%
===============================================
Files 205 207 +2
Lines 16594 16884 +290
===============================================
+ Hits 11858 12105 +247
- Misses 4736 4779 +43
Continue to review full report at Codecov.
|
rerun tests |
1 similar comment
rerun tests |
Replace "constexpr static" member variables in DecisionTree unit test fixture with "const" member variables for compliance with C++14, which otherwise requires that const static data members be separately defined in a namespace scope if it is ODR-used (See sections 3.2 and 9.4.2 of the C++11 standard, which remain relevant until C++17).