-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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 errors from MSVC '/permissive-' mode (fixes #6230) #6232
fix errors from MSVC '/permissive-' mode (fixes #6230) #6232
Conversation
Add stdexcept include to fix error C2039: 'invalid_argument': is not a member of 'std'.
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.
Thanks very much for the fix!
I think we should start passing /permissive-
when running tests with MSVC here, to catch more such things earlier. Are you interested in a follow-up pull request to add testing like that? I'd be happy to help with the contribution process.
I'd love to, so how should I do next? @jameslamb |
Thanks! Let's try using the Here's an example build log where you can see it's using MSVC from Visual Studio 16 2019: Somewhere in this block, add Lines 643 to 656 in 522f0f0
Open a draft pull request so we can see what happens in CI, and we can help from there. |
@jameslamb I submitted a draft pull request, I'm not sure if it's correct, you can check #6234. |
This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
Fixes #6230
Add stdexcept header file to fix
error C2039: 'invalid_argument': is not a member of 'std'
under option /permissive-.