[Bug c++/51336] [C++11] is_abstract and sfinae
marc.glisse at normalesup dot org
gcc-bugzilla@gcc.gnu.org
Tue Nov 29 10:51:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51336
Marc Glisse <marc.glisse at normalesup dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #6 from Marc Glisse <marc.glisse at normalesup dot org> 2011-11-29 10:34:08 UTC ---
(In reply to comment #5)
> All right, now the is_abstract behavior is settled, do you think the fixed code
> provided by Daniel in comment #1 should produce a warning, since the
> declaration is absolutely useless (I may be missing something)?
Ah, I did find a case where it was used:
I added a A(A&) constructor to prevent the default A(A const&) from being
generated, and then the template version was used when copying from const (only
if T is int).
Closing the bug as invalid, thanks for your answers.
More information about the Gcc-bugs
mailing list