3 ms·
What are some good debug practices to track auto type deduction? I know this trick: template<class... Args> struct check_type; //Don't define it! ...
by leni536 11y ago
What are some good debug practices to track auto type deduction? I know this trick:
template<class... Args>
struct check_type; //Don't define it!
...
auto x=something();
checktype<decltype(x)>(); // Compiler: "error: invalid use of incomplete type ‘struct check_type<actual type of x>’"
Also there is a nice boost type pretty print runtime library. Else?