Access private function - by _NN_

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


1
0
Sign in
to vote
ID 716372 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 1/3/2012 8:33:55 AM
Access Restriction Public
Moderator Decision Sent to Engineering Team for consideration

Description

#include <cstddef>
 
template <typename T> class Object
{
private:
        template <typename U>
        bool operator==(const Object<U>& other) const
        {
                return false;
        }
};

int main()
{
        Object<int> o1;
        Object<long> o2;
 
        (o1 == o2);
 
        return 0;
}
Sign in to post a comment.
Posted by Microsoft on 1/4/2012 at 10:55 AM
Hi:
    A fix for this issue has been checked into the compiler sources. The fix should show up in the next release of Visual C++.

Xiang Fan
Visual C++ Team
Posted by MS-Moderator08 [Feedback Moderator] on 1/3/2012 at 10:41 PM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 1/3/2012 at 8:41 AM
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)