Constify ConfigOptionVector::get_at.
This commit is contained in:
parent
d824de6168
commit
71b0b211ec
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ class ConfigOptionVector
|
||||||
virtual ~ConfigOptionVector() {};
|
virtual ~ConfigOptionVector() {};
|
||||||
std::vector<T> values;
|
std::vector<T> values;
|
||||||
|
|
||||||
T get_at(size_t i) {
|
T get_at(size_t i) const {
|
||||||
try {
|
try {
|
||||||
return this->values.at(i);
|
return this->values.at(i);
|
||||||
} catch (const std::out_of_range& oor) {
|
} catch (const std::out_of_range& oor) {
|
||||||
|
|
Loading…
Reference in a new issue