Author: mordante
Date: Sun May  3 20:04:41 2009
New Revision: 35437

URL: http://svn.gna.org/viewcvs/wesnoth?rev=35437&view=rev
Log:
Minor lexical_cast cleanups.

Modified:
    trunk/src/lexical_cast.hpp

Modified: trunk/src/lexical_cast.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/lexical_cast.hpp?rev=35437&r1=35436&r2=35437&view=diff
==============================================================================
--- trunk/src/lexical_cast.hpp (original)
+++ trunk/src/lexical_cast.hpp Sun May  3 20:04:41 2009
@@ -155,22 +155,20 @@
 {
        typedef tlexical_cast<std::string, From> tclass;
 
-       template <class T>
-       SIGNATURE_2(std::string, cast, T value, const boost::true_type&)
+       SIGNATURE_2(std::string, cast, From value, const boost::true_type&)
                std::stringstream sstr;
                sstr << value;
                return sstr.str();
        }
 
-       template <class T>
-       SIGNATURE_2(std::string, cast, T value, const boost::false_type&)
+       SIGNATURE_2(std::string, cast, From value, const boost::false_type&)
 
-               return lexical_cast_generic<std::string, T>(value);
+               return lexical_cast_generic<std::string, From>(value);
        }
 
        std::string operator()(From value)
        {
-               return this->cast<From>(value, boost::is_integral<
+               return this->cast(value, boost::is_integral<
                                typename boost::remove_pointer<From>::type>());
        }
 };


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to