make_uint4
次の方法でオーバーロードしようとしています。
namespace A {
namespace B {
inline __host__ __device__ uint4 make_uint4(uint2 a, uint2 b) {
return make_uint4(a.x, a.y, b.x, b.y);
}
}
}
しかし、コンパイルしようとすると、nvcc はエラーを返します。
error: no suitable constructor exists to convert from "unsigned int" to "uint2"
error: no suitable constructor exists to convert from "unsigned int" to "uint2"
error: too many arguments in function call
これらのエラーはすべて、"return…"
行を指しています。