Visual Studio 2010 与 Visual Studio 2005 for C++

发布于 2024-10-03 02:28:04 字数 395 浏览 1 评论 0原文

我的部门为内部应用程序编写 Windows、Linux 和跨平台(RHEL Linx 和 Windows Server 2003)C++ 代码。我们使用STL和Boost 1.39。

VS2010 现已在我的组织中可用。如果我们要转向 VS2010,我必须为其制定一个重要的业务案例。此举会给我们带来哪些最显着的好处?您认为搬家值得花费时间吗?

更新

考虑到我们代码库的大小和代码的跨平台性质,我主要对新 IDE 提供的功能感兴趣,例如智能感知有多好(例如,与 VS for .网)。智能感知是否适用于非常大的代码库?重构支持是什么样的?原始 IDE 性能如何?调试器是什么样的,即,如果我将鼠标悬停在指向智能指针集合的指针上,是否可以相对容易地看到集合中的内容?

提前致谢

My department writes a mixture of Windows, Linux and cross platform (RHEL Linx and Windows Server 2003) C++ code for in house applications. We use the STL and Boost 1.39.

VS2010 is now available in my organisation. If we were to move to VS2010 I'd have to make a significant business case for it. What would some of the most noticable benefits we would see from the move? Do you think it would be worth the time cost to move?

Update

Given the size of our code base and the cross platform nature of our code, I'm mainly interested in what the new IDE offers, e.g. how good is the intellisense (say, compared to VS for .net). Does the intellisense work well for very large code bases? What's the refactoring support like? How is raw IDE performance? What is the debugger like, i.e. if I hover over a pointer to a collection of smart pointers is it relatively easy to see what's in the collection?

Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

梦途 2024-10-10 02:28:04

新的 C++ 0x 功能(例如 lambda 表达式)非常好用。

New C++ 0x features, e.g. lambda expressions are really nice to have.

你对谁都笑 2024-10-10 02:28:04

两个编译器唯一真正的区别是 VS2010 中对 C++0x 的支持。 IDE 有了很大的改进,但 VS2005 对我来说也很好。现在这些值得花费时间成本来移动吗?由你决定...

The only real difference in the two compilers is some C++0x support in VS2010. The IDE has improved a lot more, but VS2005 is fine for me too. Now are these worth the time cost to move? Up to you...

空袭的梦i 2024-10-10 02:28:04

大大改进了 IntelliSense。 C++0x,这意味着shared_ptr、unordered_set/map、函数、lambda 等。这实际上会为您简化事情,因为您不需要 Boost 提供太多东西。您还可以访问并行模式库(并行for_each等)如果您的目标是多核,这确实很有帮助。我想说,去吧!

Greatly improved IntelliSense. C++0x, which means shared_ptr, unordered_set/map, function, lambdas, etc. This will in practice simplify things for you since you don't need as much from Boost. You also get access to Parallel Patterns Library (parallel for_each, etc) which really helps if you are targeting multi-core. I'd say go for it!

梦醒灬来后我 2024-10-10 02:28:04

如果您只对 IDE 改进感兴趣,并且大量使用智能指针,我建议您等待 SP1(或某些修复了智能感知的 SP)。

正如一些人指出的那样,C++ 智能感知发生了很大的变化,以支持其他语言多年来已经拥有的许多功能。问题是,当使用模板类型实例化时,他们意外地破坏了智能指针的智能感知。

几周前,我已经针对该问题发布了一个问题,并且根据某人的建议,我将问题发送至Microsoft Connect。遗憾的是 VC++ 团队的回应是它不会很快修复。

If you're only interested in IDE improvements, and you make a big use of smart pointers, I'd suggest to wait up to SP1 (or some SP that comes with fixes to intellisense).

As some people pointed out, there are BIG changes in C++ intellisense, to support a lot of features that other languages already had for years. The thing is that they accidentally broke the intellisense of smart pointers when instantiated with a template type.

I've posted a question with that issue a couple of weeks ago, and as suggested by someone I sent the issue to Microsoft Connect. Sadly the response from the VC++ team was that it won't be fixed soon.

删除会话 2024-10-10 02:28:04

由于您使用 STL 和 Boost,因此性能可能是一个非常重要的问题。 VC2010 支持右值引用和移动语义,即使您不在自己的代码中使用它,也可以显着加快 Boost 和 STL 代码的速度。 (尽管我怀疑 Boost 1.39 是否会大量利用这一点。但如果在某个时候你升级到最新版本的 Boost,你就会受益匪浅)

Intellisense 在 2010 年进行了重大修改。它仍然有点不稳定,并且它一看到模板就崩溃了,对于 C++ 来说总是如此,但我不得不承认它比以前工作得更好。

Since you use STL and Boost, performance might be a pretty big deal. VC2010 supports rvalue references and move semantics, which, even if you don't use it in your own code, speeds up Boost and STL code significantly. (Although I doubt Boost 1.39 utilizes this a lot though. But if at some point you upgrade to a recent version of Boost, you'll get the benefit)

Intellisense was reworked in a big way for 2010. It's still a bit wonky, and falls over the moment it sees a template, as it'll always do for C++, but I have to admit it works much better than it used to.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文