buffer.h: remove protected

This commit is contained in:
Heinz Mauelshagen 2013-01-23 13:51:13 +01:00
parent 635eb6949a
commit 78563e1709

View File

@ -80,10 +80,9 @@ namespace persistent_data {
free(p);
}
protected:
private:
unsigned char data_[Size];
private:
static void check_index(unsigned index) {
if (index >= Size)
throw std::runtime_error("buffer index out of bounds");