http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52683
--- Comment #6 from Daniel Krügler
2012-03-23 19:41:03 UTC ---
(In reply to comment #4)
> > static_assert( is_assignable::value, "not assignable" ); // pass
>
> This works because this corresponds to assigning an int rvalue to an int.
" This wo
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52683
Petr Ovtchenkov changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52683
Daniel Krügler changed:
What|Removed |Added
CC||daniel.kruegler at
|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52683
--- Comment #3 from Petr Ovtchenkov
2012-03-23 13:54:23 UTC ---
> W::operator= is an overloaded function, operator=(const W&) and
> operator=(W&&)
>
> decltype cannot work, because an overload set is not a type
I'm agree. But if you remove all
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52683
--- Comment #2 from Jonathan Wakely 2012-03-23
12:43:15 UTC ---
(In reply to comment #0)
> Assignment operator not detected via declval<>() for POD types.
W::operator= is an overloaded function, operator=(const W&) and operator=(W&&)
decltype
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52683
--- Comment #1 from Petr Ovtchenkov
2012-03-23 07:37:57 UTC ---
Created attachment 26965
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26965
test case
test case. -std=gnu++0x required.