在msvc ++ 2010 express中似乎找不到std :: thread [英] can't seem to find std::thread in msvc++ 2010 express

查看:203
本文介绍了在msvc ++ 2010 express中似乎找不到std :: thread的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近一直在阅读关于c ++的新增内容,我真的很兴奋,我已经通过了新的std :: unique_ptr和std :: shared_ptr对象,这是非常有用的,现在我我寻找那个本地线程库我听说过,似乎找不到它在任何地方。我正在读,去寻找thread.h和msvc ++ 2010 express似乎没有它。有没有最新版本的msvc ++不是与这个新的线程库,或者它只是快速版本不随它,或者我只是愚蠢,必须去寻找一个副本在互联网上?我目前必须做的线程通过Windows函数,我觉得是过于复杂,当尝试使用互斥体,他们也是操作系统特定的,所以我真的很高兴找到这个标准库实现:\

I've been reading about various new additions to c++ recently that i'm really excited about and i've already been through the new std::unique_ptr and std::shared_ptr objects, which are incredibly useful, and now i'm looking for that native thread library i've heard about and can't seem to find it anywhere. I was reading and went looking for thread.h and msvc++ 2010 express doesn't seem to have it. Did the newest versions of msvc++ not come with this new thread library, or is it just the express version that doesn't come with it, or am i just being silly and have to go looking for a copy of it on the internet? I currently have to do threading via windows functions which i feel are overcomplicated when trying to use mutexes and they're also operating system specific, so i'm really excited to find this standard library implementation :\

推荐答案

不是所有的C ++ 11更改都在Visual C ++ 2010编译器中。您将需要使用boost :: thread或just :: thread作为替代,或使用 Visual Studio 11 Beta

Not all C++11 changes are in the Visual C++ 2010 compiler. You will need to use boost::thread or just::thread as alternatives, or use the Visual Studio 11 Beta:

这篇关于在msvc ++ 2010 express中似乎找不到std :: thread的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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