This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
re: [patch] : Add operator=(pair) to tr1::tuple
- From: Kenny Simpson <theonetruekenny at yahoo dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Fri, 30 Sep 2005 20:45:53 -0700 (PDT)
- Subject: re: [patch] : Add operator=(pair) to tr1::tuple
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