This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/52683] assignment operator not detected


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]