You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Checked C doesn't support arithmetic on generic types:
error: arithmetic on a pointer to an incomplete type'T' (aka '(0, 0)')
ptr++;~~~^
1 error generated.
Is there another way we can write it such that we can keep the checked pointer and do arithmetic as well?
Note that this function needs to have generic type.
Let's say I have the following code.
Currently Checked C doesn't support arithmetic on generic types:
Is there another way we can write it such that we can keep the checked pointer and do arithmetic as well?
Note that this function needs to have generic type.