我刚刚在读“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__(