我剛剛在讀「Creating Library with backward compatible ABI that uses Boost」。現在我有一個應該使用boost進行序列化的類。我怎樣才能從公共界面隱藏那部分?在提到的文章中,建議使用gcc的-fvisibility = hidden選項。我想在一個測試類來實現這一點: #define LOCAL __attribute__ ((visibi
我想明白爲什麼內聯函數的libC++可見性宏使用__forceinline或__attribute__((__always_inline__))作爲它與內聯函數關聯的屬性的一部分。 有關背景看: The libcxx visibility design document The definition of INLINE_VISIBILITY 如果這些內聯函數將被標記爲__visibility__(