• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            Ay's Blog@CNSSUESTC

            ATL的offsetofclass中,為啥_ATL_PACKING是8的解釋

            解答出處

            http://stackoverflow.com/questions/5014061/whats-the-use-of-atl-packing-constant-when-computing-distance-from-the-start-o

            ?

            C++標準規定:

            編譯器的類的類型轉換對空指針(NULL)特殊處理,即你NULL進行強制類型轉化的結果還是NULL,所以….

            				static_cast類型轉化的時候,_ATL_PACKING的值得是非零就好
            		
            				
            				?

            C++ Standard 4.10/3 Pointer conversions [conv.ptr]:

            An rvalue of type “pointer to cv D,” where D is a class type, can be converted to an rvalue of type “pointer to cv B,” where B is a base class (clause 10) of D. If B is an inaccessible (clause 11) or ambiguous (10.2) base class of D, a program that necessitates this conversion is ill-formed. The result of the conversion is a pointer to the base class sub-object of the derived class object. The null pointer value is converted to the null pointer value of the destination type.

            posted on 2012-01-12 13:52 __ay 閱讀(1943) 評論(1)  編輯 收藏 引用 所屬分類: 算法 && C/C++

            Feedback

            # re: ATL的offsetofclass中,為啥_ATL_PACKING是8的解釋 2012-01-25 11:56 泡菜

            說實話沒看懂。。。。

            不過,C++/C的NULL之前都是宏實現,每個編譯器的底層實現是不同的,所以進行特殊處理是很正常的,在正式C++2011中就出臺了一個‘nullptr——空指針標識’,來統一,減少各個編譯器的相互’兼容‘性
            這里有文章:

            http://imcc.blogbus.com/logs/107147212.html  回復  更多評論   


            国产69精品久久久久9999| 欧美久久天天综合香蕉伊| 久久国产成人| 国产高潮国产高潮久久久| 久久国产亚洲精品| 久久这里只有精品视频99| 一本久久a久久精品综合夜夜| 色欲综合久久躁天天躁蜜桃| 亚洲精品国产自在久久| 久久精品国产WWW456C0M| 99久久精品无码一区二区毛片 | 香蕉aa三级久久毛片 | 无码超乳爆乳中文字幕久久| 色偷偷88欧美精品久久久| 久久婷婷五月综合色99啪ak| 国产精品成人精品久久久| 伊人色综合久久| 丰满少妇人妻久久久久久4| 久久国产精品一区| 香蕉久久夜色精品国产尤物| 久久久久久久久久久久久久 | 久久综合日本熟妇| 久久久网中文字幕| 国产成人精品久久| 精品国际久久久久999波多野| 99久久超碰中文字幕伊人| 夜夜亚洲天天久久| 一本久久免费视频| 亚洲国产精品无码久久| 99国产精品久久久久久久成人热| 色综合久久综合网观看| 久久久久亚洲AV无码专区桃色 | 亚洲国产另类久久久精品黑人| 久久久av波多野一区二区| 99久久伊人精品综合观看| 欧美粉嫩小泬久久久久久久| 一本色道久久88精品综合| 久久久久免费精品国产| 久久久久这里只有精品| 久久香综合精品久久伊人| 久久久艹|