-
Notifications
You must be signed in to change notification settings - Fork 464
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
fix: toupper is not a member of std #1020
Conversation
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.
As @seanmcleod already said, the code currently in master
successfully compiles on all supported platforms (MSVC 2019 & 2022, MinGW, Mac OSX and Linux) while yours fails on all platforms but MSVC.
So I'd suggest you revisit this patch so that it compiles everywhere (and please no #ifdef
).
@bcoconni Done |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1020 +/- ##
=======================================
Coverage 24.87% 24.87%
=======================================
Files 168 168
Lines 18908 18908
=======================================
Hits 4704 4704
Misses 14204 14204 ☔ View full report in Codecov by Sentry. |
I reran the github build process and no compiler errors now across all compilers and platforms. Out of interest what are you using JSBSim for and is there a particular need to use the fairly old MSVC 2015 compiler? |
Awesome 😎 |
After you added the std::transform(str.begin(), str.end(), str.begin(),
[](unsigned char c){ return std::toupper(c); }
); |
I was about to make the exact same point: the current code in the And if it's done for the sake of C++ pedantry then I'll argue that you must use |
Done. |
Fix #1019