If you only want the user to call your function with unsigned types, you could use something like this:
template<typename A, typename B, typename = typename std::enable_if<std::is_unsigned<B>::value>::type>
void someFunction(A * array, B numEl) {
// do something
}
Also note that since you are dealing with integral types for B, there is no need to accept numEl as const reference.