What are differences between std, tr1 and boost (as namespaces and/or libraries)?

后端 未结 4 1208
走了就别回头了
走了就别回头了 2020-12-05 07:08

I initially thought they\'re all the same, but it turned out to be wrong. So can anyone briefly explain the differences between these three? For example:

4条回答
  •  失恋的感觉
    2020-12-05 07:10

    It shouldn't make a big difference since large parts of the next C++ standard were in fact inherited from Boost. So if you have std::bind and don't have to be compatible with other compilers, just use it.boost::bind is good if you want to be compiler-independent. I think std::tr1::bind doesn't have any advantages over the other two if they are available: it is nonstandard with respect to both C++03 and C++0x.

提交回复
热议问题