Preparing for the next C++ standard

前端 未结 5 2054
渐次进展
渐次进展 2021-02-07 10:50

The spate of questions regarding BOOST_FOREACH prompts me to ask users of the Boost library what (if anything) they are doing to prepare their code for portability

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-07 11:20

    Nothing will need to be done because of namespaces. If you want to use the boost implementation you will still use the boost namesapce.

    I don't think they would venture into breaking compatibility in such a big way with a previous version.

    See my previous similar question here: what will happen with the overlapping portion of boost once C++0x becomes mainstream?

    But of course if you do using namespace a lot in your code you may have some overlapping definitions. You'll have to go back to specifying the namespace explicitly on each use.

提交回复
热议问题