带有 C++11 的 Visual Studio 2008

2023-07-02C/C++开发问题
201

本文介绍了带有 C++11 的 Visual Studio 2008的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我能否以某种方式使 Visual C++ 2008 拥有 C++11 库并使用 C++11 标准允许的所有优点?

Can I somehow make Visual C++ 2008 to have C++11 library and use all the good things C++11 standard allows?

推荐答案

简而言之,这是不可能的.VS2008 没有 C++11 支持,替换库会导致混乱.

In short words, it's impossible. VS2008 has no C++11 support and replacing the libraries would lead to chaos.

总而言之,你也许可以做点什么:

In long words, you maybe could do something:

  1. 使用其他编译器:C++ 编译器支持(更新链接)
  2. 您可以升级 Visual Studio,但即使是 MSVC12(visual studio 2013)也不支持所有 C++11 标准.
  3. 您可以将英特尔编译器嵌入您的视觉工作室.但英特尔也没有完全支持 C++11,但比 MSVC 多.这里 (更新的链接现在提供了一个一般性的描述)一个小的如何嵌入英特尔编译器.
  4. 更新:clang 现在也可以与 Visual Studio 一起使用,请参阅 这里.
  5. 更新: 正如 Melebius 在评论中所说,MSVC19 (VS2015) 终于支持大部分 C++11 标准...... 支持 C++11/14/17 特性(现代 C++)
  1. Use another compiler: C++ compiler support (Updated Link)
  2. You could upgrade your visual studio, but even MSVC12 (visual studio 2013) is not supporting all of C++11 standard.
  3. You could embed the Intel compiler into your visual studio. But also Intel is not fully supporting C++11, nevertheless more than MSVC. Here (Updated link now provides a general description) a small howto embed the Intel compiler.
  4. Update: clang is now also able to be used with visual studio, see here.
  5. Update: As Melebius stated in the comments, MSVC19 (VS2015) finally supports most of the C++11 standard... Support For C++11/14/17 Features (Modern C++)

这篇关于带有 C++11 的 Visual Studio 2008的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

无法访问 C++ std::set 中对象的非常量成员函数
Unable to access non-const member functions of objects in C++ std::set(无法访问 C++ std::set 中对象的非常量成员函数)...
2024-08-14 C/C++开发问题
17

从 lambda 构造 std::function 参数
Constructing std::function argument from lambda(从 lambda 构造 std::function 参数)...
2024-08-14 C/C++开发问题
25

STL BigInt 类实现
STL BigInt class implementation(STL BigInt 类实现)...
2024-08-14 C/C++开发问题
3

使用 std::atomic 和 std::condition_variable 同步不可靠
Sync is unreliable using std::atomic and std::condition_variable(使用 std::atomic 和 std::condition_variable 同步不可靠)...
2024-08-14 C/C++开发问题
17

在 STL 中将列表元素移动到末尾
Move list element to the end in STL(在 STL 中将列表元素移动到末尾)...
2024-08-14 C/C++开发问题
9

为什么禁止对存储在 STL 容器中的类重载 operator&()?
Why is overloading operatoramp;() prohibited for classes stored in STL containers?(为什么禁止对存储在 STL 容器中的类重载 operatoramp;()?)...
2024-08-14 C/C++开发问题
6