Revert 2012-05-02T12:57:10Z!jopadan@hush.ai.

If fixes bug #16544, but at a rather high cost of adding exception code in a
rather hot function. (Expecially on Windows exceptions are expensive.)

My next commit will contain a better fix.
This commit is contained in:
Mark de Wever 2012-05-06 12:00:03 +00:00
parent e5e582537c
commit db83c6de70

View file

@ -18,7 +18,7 @@
#define TOKENIZER_H_INCLUDED
#include "buffered_istream.hpp"
#include <boost/iostreams/filter/gzip.hpp>
#include <istream>
#include <string>
@ -105,11 +105,7 @@ private:
void next_char_fast()
{
do {
try {
current_ = in_.get();
} catch(boost::iostreams::gzip_error e) {
current_ = EOF;
}
current_ = in_.get();
} while (UNLIKELY(current_ == '\r'));
#if 0
/// @todo disabled untill campaign server is fixed