stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r544831 - /incubator/stdcxx/trunk/examples/tutorial/dynatype.cpp
Date Wed, 06 Jun 2007 13:03:48 GMT
Author: faridz
Date: Wed Jun  6 06:03:48 2007
New Revision: 544831

URL: http://svn.apache.org/viewvc?view=rev&rev=544831
Log:
2007-06-06 Farid Zaripov <Farid_Zaripov@epam.com>

	* dynatype.cpp (copy): static_cast to const T& instead of T

Modified:
    incubator/stdcxx/trunk/examples/tutorial/dynatype.cpp

Modified: incubator/stdcxx/trunk/examples/tutorial/dynatype.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/examples/tutorial/dynatype.cpp?view=diff&rev=544831&r1=544830&r2=544831
==============================================================================
--- incubator/stdcxx/trunk/examples/tutorial/dynatype.cpp (original)
+++ incubator/stdcxx/trunk/examples/tutorial/dynatype.cpp Wed Jun  6 06:03:48 2007
@@ -58,7 +58,7 @@
     // helper: copies one instance of dynatype to another
     template <class T>
     void copy (const dynatype &rhs) {
-        *this = static_cast<T>(rhs);
+        *this = static_cast<const T&>(rhs);
     }
 
     // pointers to the helpers (do not depend on a template parameter)



Mime
View raw message