diff --git a/src/Color.cc b/src/Color.cc index 6ca70c89..aa1ebca2 100644 --- a/src/Color.cc +++ b/src/Color.cc @@ -187,7 +187,7 @@ void Color::SetFromYUV(const float _y, const float _u, const float _v) } ////////////////////////////////////////////////// -float &Color::operator[](const unsigned int _index) +const float &Color::operator[](const unsigned int _index) { return (*static_cast(this))[_index]; }