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++/10970] Pointer-to-member partial specialization is not used through typedefs


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.


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