Introduce COMPILE_TIME_ERROR conditionals around tests failing at compile time
This commit is contained in:
@ -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