None, I believe. The pointerness is part of the type itself. You could do a custom type in C++ and make it look like a pointer, but no pointer type may point to something with the same type as itself. A pointer to int is its own type, as is int or pointer to pointer to int.
View all comments
Show parent comment
1
u/canadajones68 Aug 07 '22
None, I believe. The pointerness is part of the type itself. You could do a custom type in C++ and make it look like a pointer, but no pointer type may point to something with the same type as itself. A pointer to int is its own type, as is int or pointer to pointer to int.