so im compiling with g++ 4.8.1 using the -std=c++11 flag, and i may have found a bug. using this code:
while(regex_search(SubCounter, Match, regex("\"[^\"]*\"")))
int Line = 0;
TokenList.push_back(Token("STRING", SubCounter.substr(Match.position(0), Match.length(0)), ++Line, Match.position(0)));
SubCounter = SubCounter.substr(Match.length(0), SubCounter.size());
cout<< Error.what() << endl;
i have verified that it is regex_match because as you can see on line 38 that it calls a function Log. that spits out a message that shows you it hit that line. it never gets called and instead goes to the exception about five times and says regex_error. my question is am i doing something wrong or is it a bug in regex?