This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/66338] std::forward_as_tuple() issue with single argument
- From: "ptomulik at meil dot pw.edu.pl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 29 May 2015 20:15:44 +0000
- Subject: [Bug libstdc++/66338] std::forward_as_tuple() issue with single argument
- Auto-submitted: auto-generated
- References: <bug-66338-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66338
--- Comment #1 from Pawel Tomulik <ptomulik at meil dot pw.edu.pl> ---
As a side note, the following variant also does not compile:
int main()
{
S const s{};
std::tuple<S const&>(std::forward_as_tuple(s));
return 0;
}
but the non-const lvalue reference goes smoothly:
int main()
{
S s{};
std::tuple<S&>(std::forward_as_tuple(s));
return 0;
}