Shafik Y
A
Cursed code of the day 🧐

#cplusplus
06:46 PM - Apr 22, 2023
Avatar Avatar
0
1
2
Shafik Y
A
In response to Shafik Y.
It might help to think about this code instead to understand what is going on:

void f() {
using T = int;
int x;
0 .T::~T(); // OK, no effect
x.T::~T();
}

https://godbolt.org/z/bq3hYhGx9
06:47 PM - Apr 22, 2023
0
0

 

{{ notificationModalContent }} {{ promptModalMessage }}