From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 934 invoked by alias); 6 Apr 2011 15:32:28 -0000 Received: (qmail 926 invoked by uid 22791); 6 Apr 2011 15:32:27 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 06 Apr 2011 15:32:23 +0000 From: "gintensubaru at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/48476] [C++0x] conversion between std::tuple which have reference member is rejected X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: gintensubaru at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Wed, 06 Apr 2011 15:32:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-04/txt/msg00586.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48476 --- Comment #7 from Takaya Saito 2011-04-06 15:32:00 UTC --- (In reply to comment #6) > Ok, thanks. Still, I believe we have other std::move which should be turned > into forward, in std::tuple. Those in std::tuple_cat itself also seem suspect, > I see you are touching only the helper. Well, I think I had replaced all std::move that should be turned into forward ; remaining std::move are moving _Inherited ( _Tuple_impl<_Idx + 1, _Tail...> ), tuple or rvalue reference to these classes, which are not lvalue reference type, so they are not to be replaced ( of course, it is not wrong to replace them with std::forward, since std::move(x) is equivalent to std::forward(x) if T is remove_reference::type ).