mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-19 17:37:43 +00:00
throw herr, not const char*
This commit is contained in:
@ -40,7 +40,7 @@ struct FilterSetBytes {
|
||||
}
|
||||
|
||||
std::string at(size_t n) const {
|
||||
if (n >= items.size()) throw("FilterSetBytes access out of bounds");
|
||||
if (n >= items.size()) throw herr("FilterSetBytes access out of bounds");
|
||||
auto &item = items[n];
|
||||
return buf.substr(item.offset, item.size);
|
||||
}
|
||||
@ -93,7 +93,7 @@ struct FilterSetUint {
|
||||
}
|
||||
|
||||
uint64_t at(size_t n) const {
|
||||
if (n >= items.size()) throw("FilterSetBytes access out of bounds");
|
||||
if (n >= items.size()) throw herr("FilterSetBytes access out of bounds");
|
||||
return items[n];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user