This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52683] assignment operator not detected
- From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 23 Mar 2012 19:41:03 +0000
- Subject: [Bug c++/52683] assignment operator not detected
- Auto-submitted: auto-generated
- References: <bug-52683-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52683
--- Comment #6 from Daniel KrÃgler <daniel.kruegler at googlemail dot com> 2012-03-23 19:41:03 UTC ---
(In reply to comment #4)
> > static_assert( is_assignable<int&,int&&>::value, "not assignable" ); // pass
>
> This works because this corresponds to assigning an int rvalue to an int.
" This works because this corresponds to assigning an int rvalue to an int
lvalue."