Minor regex fixes for VC6 (Added some boost:: qualifies to work around lack or Koenig lookup).

[SVN r8238]
This commit is contained in:
John Maddock
2000-11-17 11:35:02 +00:00
parent 36e4289aaa
commit c0399a3a57
8 changed files with 19 additions and 12 deletions

View File

@ -72,12 +72,12 @@ int main(int argc, const char** argv)
// temporary string stream
std::ostringstream t(std::ios::out | std::ios::binary);
std::ostream_iterator<char, char> oi(t);
regex_merge(oi, in.begin(), in.end(), e2, pre_format);
boost::regex_merge(oi, in.begin(), in.end(), e2, pre_format);
// then output to final output stream
// adding syntax highlighting:
std::string s(t.str());
std::ostream_iterator<char, char> out(os);
regex_merge(out, s.begin(), s.end(), e1, format_string);
boost::regex_merge(out, s.begin(), s.end(), e1, format_string);
os << footer_text;
}
return 0;
@ -128,3 +128,4 @@ const char* footer_text = "</PRE>\n</BODY>\n\n";