diff --git a/source/ur/ur.hpp b/source/ur/ur.hpp index 7e53425000..5a23a88ba9 100644 --- a/source/ur/ur.hpp +++ b/source/ur/ur.hpp @@ -304,7 +304,8 @@ class UrReturnHelper { // Array return value where element type is differrent from T template - ur_result_t operator()(const T *t, size_t s) { + std::enable_if_t, ur_result_t> + operator()(const T *t, size_t s) { return ur::getInfoArray(s, param_value_size, param_value, param_value_size_ret, t); }