Introduce COMPILE_TIME_ERROR conditionals around tests failing at compile time

This commit is contained in:
Heinz Mauelshagen
2013-01-23 15:08:05 +01:00
parent dc06c88758
commit 1b49f95c0c
2 changed files with 34 additions and 6 deletions

View File

@ -93,7 +93,7 @@ namespace persistent_data {
static void check_index(unsigned index) {
if (index >= Size)
throw std::runtime_error("buffer index out of bounds");
throw std::range_error("buffer index out of bounds");
}
};
}