程度如何提高使用C ++ 11? [英] How well does boost use c++11?

查看:126
本文介绍了程度如何提高使用C ++ 11?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升压本质上是一个C ++ 03库(这刺激了C ++ 11标准)。我考虑使用一些Boost库(那些没有在C ++ 11实现)的。如果我用c ++ 11,并提振编译(有可能是不可复制的,但移动物体的问题)?而如何提高是利用C ++的11功能(可变参数模板是[被一些Boost库]使用一个明显的事情,而不是多升压MPL)的呢? (我无法找到这其中包括升压FAQ)。

Boost is essentially a c++03 library (which stimulated the c++11 standard). I'm contemplating of using some boost libraries (those that are not implemented in c++11). If I'm using c++11, does boost compile (there may be issues with non-copyable but movable objects)? and how well is boost making use of the c++11 features (variadic templates are an obvious thing to use [by some boost libraries] instead of much of the boost MPL)? (I couldn't find this amongst the boost FAQ).

推荐答案

升压正朝着使用C ++ 11的特性移动。

Boost is moving towards using C++11 features.

但有一点要记住的是,升压不是图书馆,而是库的集合。他们中的一些(例如的boost ::阵列)可能将永远不会被更新为使用许多C ++ 11的特性。为什么要它,当你有的std ::阵列标准(这是基于的boost ::阵列? )

But one thing to remember is that boost is not "a library", but rather a collection of libraries. Some of them (for example boost::array) probably won't ever be updated to use many c++11 features. Why should it, when you have std::array in the standard (which was based on boost::array?)

在另一方面,升压想谁使用还是C ++ 03仍将是有用的人。

On the other hand, Boost would like to remain useful for people who are still using C++03.

注:虽然我写的,如果升压,是一些整体的实体,有很多的人谁有助于提振,他们有很多不同的意见。 ; - )

要看到各种Boost库如何使用C ++编译器11的工作,你可以检查出的升压试验的网页。

To see how well various boost libraries work with C++11 compilers, you can check out the Boost Testing web page.

这篇关于程度如何提高使用C ++ 11?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆