From: dooglus Date: Fri, 28 Sep 2007 02:08:11 +0000 (+0000) Subject: Move the deprecated type conversion operator prototypes to the end of their class... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1bd2f1e17d994786de6f285b3be156320d9f066a;p=synfig.git Move the deprecated type conversion operator prototypes to the end of their class definitions. git-svn-id: http://svn.voria.com/code@791 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/ETL/trunk/ETL/_angle.h b/ETL/trunk/ETL/_angle.h index 0b3461f..6b50095 100644 --- a/ETL/trunk/ETL/_angle.h +++ b/ETL/trunk/ETL/_angle.h @@ -286,10 +286,10 @@ public: rad(const angle &a):angle(a) { } rad mod()const { return angle::mod(); } rad dist(const angle &rhs)const { return angle::dist(rhs); } + value_type get()const { return v; } #ifndef ETL_NO_DEPRECATED operator value_type()const ETL_DEPRECATED_FUNCTION; #endif - value_type get()const { return v; } }; // END of class angle::radians inline angle::rad::operator angle::value_type()const { return get(); } @@ -366,10 +366,10 @@ public: cos(const angle &a):angle(a) { } cos mod()const { return angle::mod(); } cos dist(const angle &rhs)const { return angle::dist(rhs); } + value_type get()const { return (value_type)std::cos(v); } #ifndef ETL_NO_DEPRECATED operator value_type()const ETL_DEPRECATED_FUNCTION; #endif - value_type get()const { return (value_type)std::cos(v); } }; // END of class angle::cos inline angle::cos::operator angle::value_type()const { return get(); } @@ -387,10 +387,10 @@ public: tan(const angle &a):angle(a) { } tan mod()const { return angle::mod(); } tan dist(const angle &rhs)const { return angle::dist(rhs); } + value_type get()const { return (value_type)std::tan(v); } #ifndef ETL_NO_DEPRECATED operator value_type()const ETL_DEPRECATED_FUNCTION; #endif - value_type get()const { return (value_type)std::tan(v); } }; // END of class angle::tan inline angle::tan::operator angle::value_type()const { return get(); }