News for hackers. Stuff that matters.
Re:How well do you know C++ auto type deduction? by rrhjm53270 on Monday December 15, 2025 @04:43PM (#46281145)
A trick that I used was

``` struct dummy{}; dummy d = ANYTHING_YOU_WANT_GO_GET_THE_TYPE; ```

Compile it with g++, and get the type info from compilation error -:)

There are no comments on this comment yet.