Posts by Marcos • 11 points
1 post
-
1
votes1
answer52
viewsQ: decltype and pointers
I wanted to know why, when I use decltype(*Pointer) - using a pointer - it defines the type of the variable as reference, example: int i = 42, *p = &i; decltype(*p) c = i; What I want you to…