[wx-dev] wxRealRect implementation

Martin Ettl orbitcowboy at web.de
Wed Apr 23 07:02:26 PDT 2008


> -----Ursprüngliche Nachricht-----
> Von: wx-dev at lists.wxwidgets.org
> Gesendet: 23.04.08 15:43:02
> An: wx-dev at lists.wxwidgets.org
> Betreff: Re: Re[4]: [wx-dev] wxRealRect implementation


> 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; }
> 

Thanks for the hint.
Mabye one has to write a function liken

template <class T>  bool  wxIsSame<T>(const T &x, const T &y);

or so...


> with wxDefaultCoord defined as enum ( int )
> 
> see http://www.parashift.com/c++-faq-lite/newbie.html#faq-29.17
> 
> Regards,
> Laurent
> _______________________________________________
> wx-dev mailing list
> wx-dev at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wx-dev
> 


_______________________________________________________________________
EINE FÜR ALLE: die kostenlose WEB.DE-Plattform für Freunde und Deine
Homepage mit eigenem Namen. Jetzt starten! http://unddu.de/?kid=kid@mf2



More information about the wx-dev mailing list