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 <[EMAIL PROTECTED]>
* 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