This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/10970] Pointer-to-member partial specialization is not used through typedefs
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 May 2003 14:56:24 -0000
- Subject: [Bug c++/10970] Pointer-to-member partial specialization is not used through typedefs
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10970
bangerth@dealii.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
------- Additional Comments From bangerth@dealii.org 2003-05-27 14:56 -------
I fail to see the problem. In your code
-------------------------------
template <class> struct PtoM {};
template <class U, class V>
struct PtoM<U V::*> {
enum {value = true};
};
struct A {};
typedef int (A::*MFA)(int);
int i = PtoM<MFA>::value;
-------------------------------
You specialize PtoM for pointer-to-member-VARIABLE, but you instantiate
the class for a pointer-to-member-FUNCTION. Why, then, should it take
the specialization?
W.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.