On 02/09/2011 19:33, Jeffrey Lee Hellrung, Jr. wrote:
For the "compile-time trick", I'd guess the closest thing would be what
Boost.TypeOf does.
There is better than what Boost.Typeof does.
Regardless, it would only work at the translation unit level.