Introduce COMPILE_TIME_ERROR conditionals around tests failing at compile time
This commit is contained in:
1 parent
dc06c88758
commit
1b49f95c0c
2 files changed
+34
-6
No files matched your search
@@ -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");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user