
3 Oct
2005
3 Oct
'05
7:03 p.m.
David Abrahams wrote:
Reece Dunn <msclrhd@hotmail.com> writes:
I might go further and add units (maybe defaulting to pixels)
typedef gui::rect<px,int> rect 1; typedef gui::rect<pc,double> rect 2; typedef gui:rect<mm,int> rect 3;
That looks great :)!
Am I insane or is that not legal C++ code? Or both?
I was assuming Andy meant typedef gui::rect< px, int > rect1; not typedef gui::rect< px, int > rect 1; The former is legal C++, but the latter isn't. I was commenting on the intent, i.e. the gui::rect< pc, float > part. As to whether or not you are insane, I am not qualified to judge ;). - Reece