[patch] : Add operator=(pair) to tr1::tuple

Kenny Simpson theonetruekenny@yahoo.com
Sat Oct 1 03:45:00 GMT 2005


In the patch, operator= lacks a return:

+    template<typename _U1, typename _U2>
+      tuple&
+      operator=(const std::pair<_U1, _U2>& __u)
+      { 
+	_M_arg1 = __u.first;
+	_M_arg2 = __u.second;
+      }

Surely there should be a
+       return *this;

-Kenny



		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com



More information about the Libstdc++ mailing list