Boost logo

Boost :

From: Reece Dunn (msclrhd_at_[hidden])
Date: 2005-10-03 14:03:12

David Abrahams wrote:
> Reece Dunn <msclrhd_at_[hidden]> 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;


    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

Boost list run by bdawes at, gregod at, cpdaniel at, john at