stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r627621 - /stdcxx/trunk/examples/manual/money_manip.cpp
Date Thu, 14 Feb 2008 00:19:47 GMT
Author: faridz
Date: Wed Feb 13 16:19:44 2008
New Revision: 627621

URL: http://svn.apache.org/viewvc?rev=627621&view=rev
Log:
2008-02-14  Farid Zaripov  <farid_zaripov@epam.com>

	* examples/manual/money_manip.cpp (put_money): Change the parameter type
	from long double to const long double& to prevent assigning the reference
	to the temporary value which is deleted when reference is used..

Modified:
    stdcxx/trunk/examples/manual/money_manip.cpp

Modified: stdcxx/trunk/examples/manual/money_manip.cpp
URL: http://svn.apache.org/viewvc/stdcxx/trunk/examples/manual/money_manip.cpp?rev=627621&r1=627620&r2=627621&view=diff
==============================================================================
--- stdcxx/trunk/examples/manual/money_manip.cpp (original)
+++ stdcxx/trunk/examples/manual/money_manip.cpp Wed Feb 13 16:19:44 2008
@@ -121,7 +121,7 @@
 
 // manipulator for the insertion of monetary long double values
 inline std::__rw_smanip<money_put_manip<long double>, bool>
-put_money (long double val, bool intl = false)
+put_money (const long double &val, bool intl = false)
 {
     // return an object of the manipulator implementation type
     // that will store the function arguments until its function



Mime
View raw message