[wx-dev] wxRealRect implementation

Laurent Humbertclaude laurent.humbertclaude at gmail.com
Wed Apr 23 06:42:45 PDT 2008


Hi,

>  To my mind it is quite simple to merge this classes to the current branch....
Your
   inline bool operator==(const wxPoint<T>& p) const { return (x ==
p.x) && (y == p.y); }
is wrong if T is defined as double or float.

same for wxSize<T>
   inline bool IsFullySpecified() const { return x != wxDefaultCoord
&& y != wxDefaultCoord; }

with wxDefaultCoord defined as enum ( int )

see http://www.parashift.com/c++-faq-lite/newbie.html#faq-29.17

Regards,
Laurent


More information about the wx-dev mailing list