rename cpp14_enable_if_t to cpp17_enable_if_t

std::enable_if_t is in C++14, but std::is_integral_v
is in C++17
This commit is contained in:
William S Fulton 2022-11-05 17:13:30 +00:00
commit 86b3e60617
3 changed files with 6 additions and 6 deletions

View file

@ -1,10 +1,10 @@
import cpp14_enable_if_t.*;
import cpp17_enable_if_t.*;
public class cpp14_enable_if_t_runme {
public class cpp17_enable_if_t_runme {
static {
try {
System.loadLibrary("cpp14_enable_if_t");
System.loadLibrary("cpp17_enable_if_t");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e);
System.exit(1);
@ -13,7 +13,7 @@ public class cpp14_enable_if_t_runme {
public static void main(String argv[])
{
if (cpp14_enable_if_t.enableif5(10, 20) != 30)
if (cpp17_enable_if_t.enableif5(10, 20) != 30)
throw new RuntimeException("enableif5 not working");
}
}