Skip to content

Commit

Permalink
fix compile on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Lefraudeur committed May 19, 2024
1 parent d78f5cf commit 29123c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meta_jni.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ namespace jni
}

template<class... method_parameters_type>
static klass new_object(jni::constructor<method_parameters_type...> klass::*constructor, const method_parameters_type&... method_parameters)
static klass new_object(jni::constructor<method_parameters_type...> members_type::*constructor, const method_parameters_type&... method_parameters)
{
klass tmp{}; //lmao
return klass{jni::get_env()->NewObject(get_cached_jclass<klass>(), jmethodID(tmp.*constructor), std::conditional_t<is_jni_primitive_type<method_parameters_type>, method_parameters_type, jobject>(method_parameters)...)};
Expand Down

0 comments on commit 29123c9

Please sign in to comment.