Farid Zaripov wrote:
>>-----Original Message-----
>>From: Martin Sebor [mailto:sebor@roguewave.com]
>>Sent: Monday, November 06, 2006 10:59 PM
>>To: stdcxx-dev@incubator.apache.org
>>Subject: Re: svn commit: r466955 -
>>/incubator/stdcxx/trunk/tests/src/printf.cpp
>>
>>
>>> Does the "%{M}" formatting directive is intended for printing the
>>>any pointer to member of any class or only void (Class::*)() where
>>>Class is the simple class? Because the size of pointer to
>>
>>class member
>>
>>>can vary depending from the class I think we should pass
>>
>>the sizeof of
>>
>>>the pointer too.
>>
>>That seems odd. How can the size of an type change like that?
>>It must be a bug. I opened the following issue with Microsoft:
>>https://connect.microsoft.com/VisualStudio/feedback/ViewFeedba
>>ck.aspx?FeedbackID=236074
>
>
> I found that is documented feature:
> http://msdn2.microsoft.com/en-us/library/yad46a6z(vs.80).aspx
>
> By default the compiler assumes that all declarations of a pointers to
> a member of the class are declared after class definition (/vmb).
Thanks. I still think it's a bug, even if they document the behavior.
Martin
|