Closed BrianMichell closed 2 months ago
warning: invalid application of ‘sizeof’ to a void type [-Wpointer-arith] 1678 | return byte_diff / sizeof(T);
Check T for void and use the store dtype if so. Otherwise use compile time value.
T
warning: invalid application of ‘sizeof’ to a void type [-Wpointer-arith] 1678 | return byte_diff / sizeof(T);
Soulution
Check
T
for void and use the store dtype if so. Otherwise use compile time value.