首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

Boost库的regex类,每次使用的时候都会抛出内存错误

2013-01-01 
Boost库的regex类,每次使用的时候都会抛出内存异常#include string#include boost/regex.hpp//环境是v

Boost库的regex类,每次使用的时候都会抛出内存异常
#include <string>
#include <boost/regex.hpp>
//环境是vs08,MFC
boost::regex reg("(*.*)");//程序断点过这里的时候就会出现内存异常,在atldebugapi.cpp里

Test2_003.exe 中的 0x76d17945 处未处理的异常: Microsoft C++ 异常: 内存位置 0x0018e6a8 处的 boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::regex_error> >。
[解决办法]
正则表达式不正确吧,一般是这个原因 

热点排行