You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace raw #ifdef _MSC_VER with BOOST_CAPY_WORKAROUND macro (#144)
Add a standalone BOOST_CAPY_WORKAROUND(symbol, test) macro to
detail/config.hpp, modeled on Boost.Config's BOOST_WORKAROUND. The
guard mechanism evaluates to 0 when the compiler symbol is undefined,
making workaround sites safe and self-documenting across compilers.
Also add BOOST_CAPY_MSVC_WARNING_PUSH/DISABLE/POP helpers that use
__pragma() on MSVC and expand to nothing elsewhere, replacing the
repetitive 4-line #ifdef/#pragma/#endif sandwich pattern.
Feature-detection sites (_MSC_VER for TLS keyword, __forceinline,
RTTI, __FUNCSIG__) are intentionally left as raw checks since they
are not bug workarounds.
0 commit comments