diff --git a/src/shogun/base/SGObject.h b/src/shogun/base/SGObject.h index 24c003b369f..6cdd630761e 100644 --- a/src/shogun/base/SGObject.h +++ b/src/shogun/base/SGObject.h @@ -403,7 +403,7 @@ class CSGObject * @param name name of the parameter * @param value value of the parameter, wrapped in smart pointer */ - template ::type>::value, T>::type> + template ::value, T>* = nullptr> void put(const std::string& name, Some value) { put(name, (CSGObject*)(value.get()));