v1.5.0 Does not compile on MSVC2022 (or perhaps I'm doing something wrong)
- Dominant language
- C++
- Stars
- 333
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
From a CI run on a windows build node:
```
15:24:29 -- The CXX compiler identification is MSVC 19.40.33821.0
...
...
...
15:34:39 C:\x\java\include\jni_bind_release.h(1629,3): error C2131: expression did not evaluate to a constant [C:\x\java\sigproc-jni.vcxproj]
15:34:39 C:\x\java\include\jni_bind_release.h(2050,16): error C3547: template parameter 'RhsParams' cannot be used because it follows a template parameter pack and cannot be deduced from the function parameters of 'jni::operator ==' [C:\x\java\sigproc-jni.vcxproj]
15:34:39 C:\x\java\include\jni_bind_release.h(4511,23): error C2975: 'jni::JniT': invalid template argument for 'class_v_', expected compile-time constant expression [C:\x\java\sigproc-jni.vcxproj]
15:34:39 C:\x\java\include\jni_bind_release.h(4511,46): error C2975: 'jni::JniT': invalid template argument for 'class_loader_v_', expected compile-time constant expression [C:\x\java\sigproc-jni.vcxproj]
15:34:39 C:\x\java\include\jni_bind_release.h(7138,22): error C2338: static_assert failed: 'JniT must be in its minimal form for best caching.' [C:\x\java\sigproc-jni.vcxproj]
15:34:40 C:\x\java\include\jni_bind_release.h(7998,28): error C2664: 'void JNIEnv_::ReleaseIntArrayElements(jintArray,jint *,jint)': cannot convert argument 2 from 'int *' to 'jint *' [C:\x\java\sigproc-jni.vcxproj]
15:34:40 C:\x\java\include\jni_bind_release.h(8751,54): error C3861: 'loaded_class': identifier not found [C:\x\java\sigproc-jni.vcxproj]
15:34:40 C:\x\java\include\jni_bind_release.h(8751,54): error C2065: 'loaded_class': undeclared identifier [C:\x\java\sigproc-jni.vcxproj]
15:34:41 C:\x\java\include\jni_bind_release.h(10756,17): error C2338: static_assert failed: 'JNI Bind requires C++20 (or later) or C++17 with clang.' [C:\x\java\sigproc-jni.vcxproj]
15:34:41 C:\x\java\include\jni_bind_release.h(10760,55): error C2065: 'loaded_class': undeclared identifier [C:\x\java\sigproc-jni.vcxproj]
```
I am using v1.5.0.
Contributor guide
Assessment
This issue has not been assessed yet.