BOOST_STATIC_ASSERT without boost

前端 未结 6 1201

Since boost is forbidden in a company I work for I need to implement its functionality in pure C++. I\'ve looked into boost sources but they seem to be too complex to unders

6条回答
  •  再見小時候
    2020-11-30 03:20

    You could simply copy the macro from the Boost source file to your own code. If you don't need to support all the compilers Boost supports you can just pick the right definition for your compiler and omit the rest of the #ifdefs in that file.

提交回复
热议问题