I can not get access to pointer to member. - by malistov

Status : 

  Won't Fix<br /><br />
		Due to several factors the product team decided to focus its efforts on other items.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


4
0
Sign in
to vote
ID 514710 Comments
Status Closed Workarounds
Type Bug Repros 2
Opened 11/26/2009 1:23:56 AM
Access Restriction Public

Description

Consider the following code:

    template<class T, class F>           struct X {};
    template<class T, class F, T F::* m> struct Y {};
    
    struct Foo {
    	int member;
    	typedef X<int, Foo>               x_type; // works well
    	typedef Y<int, Foo, &Foo::member> y_type; // ERROR
    };

    typedef Y<int, Foo, &Foo::member> y_type2; // OK

Why does compiler generate error? (VS2008)
Sign in to post a comment.
Posted by Microsoft on 12/1/2009 at 9:52 AM
Hi: this is a known issue with Visual C++ (it is not new with Visual C++ 2010) - given the nature of the issue and the complexity of the fix we decided not to address it for the current release but we do have plans to address it in a future release.

Jonathan Caves
Visual C++ Compiler Team
Posted by Microsoft on 12/1/2009 at 12:32 AM
We were able to reproduce the issue you are seeing. We are escalating this bug to the product unit who works on that specific feature area. The product team will review this issue and make a decision on whether they will fix it or not for the next release.
Posted by Microsoft on 11/27/2009 at 7:55 PM
Thank you for your feedback, We are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)