Replacing native VS 2010 (VC10) tr1 libraries with Boost.TR1

杀马特。学长 韩版系。学妹 提交于 2019-12-06 11:00:10

Try defining _HAS_CPP0X=0 in the project's set of defines - that's supposed to disable VC10's TR1 support.

Markus

Microsoft advises against using _HAS_CPP0X=0 with VS2010. What you can do is:

  1. Use Microsoft's tr1 implementation (not recommended, it's buggy)
  2. Use the boost tr1 features directly from the boost namespace using full qualifiers (e.g. boost::function(..), boost::bind(...), etc.). You get name clashes otherwise.
  3. Use using-declarations
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!