Skip to content

Commit

Permalink
add template argument for SGMatrix<T> in put_vector_or_matrix_dispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Feb 28, 2018
1 parent 5863cda commit 15ad63e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interfaces/swig/shogun.i
Expand Up @@ -144,7 +144,7 @@ namespace shogun
}

#ifdef SWIGJAVA
template <typename T, typename T2 = typename std::enable_if<std::is_same<SGMatrix<float64_t>, T>::value, T>::type>
template <typename T, typename X = typename std::enable_if_t<std::is_same<SGMatrix<typename extract_value_type<T>::value_type>, T>::value> >
void put_vector_or_matrix_dispatcher(const std::string& name, T value)
{
Tag<SGVector<float64_t>> tag_vec(name);
Expand Down

0 comments on commit 15ad63e

Please sign in to comment.