This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/68515] std::result_of<F(X)> doesn't work when F is abstract (with pure virtual functions)
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 24 Nov 2015 17:03:01 +0000
- Subject: [Bug libstdc++/68515] std::result_of<F(X)> doesn't work when F is abstract (with pure virtual functions)
- Auto-submitted: auto-generated
- References: <bug-68515-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68515
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I think it's a front-end problem, it (rightly) says that F(X) is not a valid
function type, because functions can't return abstract types. The problem is
that we don't really have (or want) a function of that type, it's just the
notational trick used by result_of.