简体   繁体   English

bcp(Boost)复制最小子集库依赖项

[英]bcp (Boost) to copy a minimal subset library dependency

I am currently trying to copy a subset of regex (also known as regular expressions) library and its dependencies so I can bring it to school to work with. 我目前正在尝试复制正则表达式(也称为正则表达式)库及其依赖项的子集,以便可以将其带到学校使用。 I could be using Microsoft's regular expressions from the C++11 standard library, but my school's computers do not support the C++11 library. 我可以使用C ++ 11标准库中的Microsoft正则表达式,但是我学校的计算机不支持C ++ 11库。

Anyways, to make this possible, I have compiled the bcp tool successfully and I have typed bcp boost/regex.hpp <my destination folder> on my command prompt window. 无论如何,要使之成为可能,我已经成功编译了bcp工具,并在命令提示符窗口中键入了bcp boost/regex.hpp <my destination folder>

The problem is that I get the following error: 问题是我得到以下错误:

**** exception(205): std::runtime_error: Found a closing ) with no corresponding openening parenthesis.  The error occurred while parsing the regular expression fragment: "?+(([(<].*HERE>>>)?$)?".

Any kind of advice would be appreciated. 任何意见将不胜感激。

Very peculiar. 非常奇特。 The quoted code has an OPENING ( with no corresponding closing parenthesis. Try escaping the open parenthesis with a slosh \\: 引用的代码带有OPENING(没有相应的右括号。请尝试使用斜杠\\来转义打开的括号:

"?+(([\(<].*HERE>>>)?$)?"

This would not alter the regular expression, but may help the parser. 这不会改变正则表达式,但可以帮助解析器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM