On 05/31/2010 04:11 PM, Adam Ruppe wrote:
Doesn't

struct T { R _payload; }

accomplish the same thing as

typedef R T;

in the majority of useful cases?

Exactly. And with alias this and other mechanisms, you can define several well-defined typedef incarnations that achieve what you want to express.


Andrei

Reply via email to