Introduce COMPILE_TIME_ERROR conditionals around tests failing at compile time

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

No files matched your search

+1 -1
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");
}
};
}