13-07-2018, 02:32 AM
Are conversions between pointers to void and pointers to object types a violation of rule 5-2-7? It isn't clear what "object with pointer type" means here (or "unrelated pointer type" for that matter). Specifically, are either of the casts below a violation of Rule 5-2-7?
Code:
void bar(int *ip, void *vp) {
ip = static_cast(vp);
vp = static_cast(ip);
}
<t></t>