You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently, we updated the commit of LightGBM for RWC testing. It failed to build due to error C2039: 'invalid_argument': is not a member of 'std'. with option /permissive-. Could you please help look this issue? Thanks.
F:\gitP\microsoft\LightGBM\include\LightGBM\arrow.tpp(184,18): error C2039: 'invalid_argument': is not a member of 'std'
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.38.33130\include\vector(25,1): note: see declaration of 'std'
F:\gitP\microsoft\LightGBM\include\LightGBM\arrow.tpp(16,45): note: This diagnostic occurred in the compiler generated function 'std::function<T(const ArrowArray *,size_t)> LightGBM::get_index_accessor(const char *)'
If you feel you've identified a fix, please open a pull request and we'd be happy to review it. You can @ me for help with the contribution process if you need help.
If you feel you've identified a fix, please open a pull request and we'd be happy to review it. You can @ me for help with the contribution process if you need help.
RWC testing means Real World Code testing.
I submitted a PR #6232, could you please help review and approval it? Thanks. @jameslamb
Description
Recently, we updated the commit of LightGBM for RWC testing. It failed to build due to
error C2039: 'invalid_argument': is not a member of 'std'
. with option /permissive-. Could you please help look this issue? Thanks.Reproducible example
Repro setps:
CL.exe /c /IF:\gitP\microsoft\LightGBM\external_libs\eigen /IF:\gitP\microsoft\LightGBM\include /IF:\gitP\microsoft\LightGBM\tests\cpp_tests /nologo /W4 /WX- /diagnostics:column /MP /O2 /Ob2 /Oi /Ot /Oy /D _MBCS /D WIN32 /D _WINDOWS /D NDEBUG /D EIGEN_MPL2_ONLY /D EIGEN_DONT_PARALLELIZE /D USE_SOCKET /D WIN_HAS_INET_PTON /D "CMAKE_INTDIR=\"Release\"" /Gm- /EHsc /MT /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /openmp /external:W4 /Gd /TP /errorReport:queue F:\gitP\microsoft\LightGBM\src\io\dataset_loader.cpp /permissive-
Actual result:
Note:
I found that add
#include <stdexcept>
to https://github.com/microsoft/LightGBM/blob/master/include/LightGBM/arrow.h can solve this issue.Environment info
LightGBM version or commit hash: 522f0f0
Command(s) you used to install LightGBM
Additional Comments
The text was updated successfully, but these errors were encountered: