开发者

Where is <regex> in Visual Studio 2005?

I am back-porting a VS2010 project to VS2005 (don't ask why..). In VS2010 the following works just fine:

#include <regex>

But in VS2005 its a fatal error:开发者_StackOverflow社区

fatal error C1083: Cannot open include file: 'regex': No such file or directory

Any ideas?

EDIT: I should add that I am a C++ / VS newbie. If is simply not part of VS2005, I also welcome suggestions on what to use as a regex library.

Thanks!


There is no <regex> in VS2005. That header is part of the new C++ standard features which are partially supprted by VS2010, but not supported at all by VS2005.

However, <regex> is based on boost.regex, which can be downloaded for Windows at boostpro.com


The header (from TR1) has been added in Visual Studio 2008. See the Visual C++ 2008 Feature Pack Release from MDSN, search for regex:

TR1 Known Issues:

TR1 consists of new headers (e.g. regex) and additions to existing headers (e.g. memory).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜