Scott Meyers also suggests the same sort of thing in Effective Modern C++ when not using an IDE.
Personally, I use the technique a lot for debugging template errors in the language.
Personally, I use the technique a lot for debugging template errors in the language.
template<typename T> struct TD;
Instantiate this as ‘TD<decltype(foo)>’ to get the full name of the type.
Rust’s does seem more concise.