#include <string>
#include <exception>
-using std::istream;
-using std::string;
-
#include "atomic.h"
#include "page.h"
#include "crc32c.h"
append_buffer.set_length(0); // unused, so far.
}
}
- void append(const string& s) {
+ void append(const std::string& s) {
append(s.data(), s.length());
}
void append(const ptr& bp) {
++p)
_buffers.push_back(*p);
}
- void append(istream& in) {
+ void append(std::istream& in) {
while (!in.eof()) {
- string s;
+ std::string s;
getline(in, s);
append(s.c_str(), s.length());
append("\n", 1);