gtensor icon indicating copy to clipboard operation
gtensor copied to clipboard

fix gt::copy for const data type spans and containers

Open bd4 opened this issue 4 years ago • 0 comments

If the source has a const data type, no signature will match and compile will fail, e.g.

error: no instance of overloaded function "gt::copy" matches the argument list
            argument types are: (gt::gtensor_span<const real_t, 2UL, gt::space::thrust_host>, gt::gtensor<real_t, 2UL, gt::space::device>)`

there is no reason for this to not work.

bd4 avatar Sep 02 '21 19:09 bd4