Compiler specific fixes and workarounds.

[SVN r27273]
This commit is contained in:
John Maddock
2005-02-09 13:16:39 +00:00
parent 2ee7ef601c
commit 077f211f2f
2 changed files with 8 additions and 3 deletions

View File

@ -20,8 +20,13 @@
#include <fstream>
#include <sstream>
#include <string>
#include <cstring>
#include <boost/regex.hpp>
#ifdef BOOST_NO_STDC_NAMESPACE
namespace std{ using ::memmove; }
#endif
// match some kind of html tag:
boost::regex e("<[^>]*>");
// count how many:
@ -53,7 +58,7 @@ void search(std::istream& is)
// and how much is left to fill:
unsigned size = next_pos - buf;
// copy forward whatever we have left:
memmove(buf, next_pos, leftover);
std::memmove(buf, next_pos, leftover);
// fill the rest from the stream:
is.read(buf + leftover, size);
unsigned read = is.gcount();