Change [] return type to reference
This commit is contained in:
@@ -170,7 +170,7 @@ namespace Aurora {
|
||||
Matrix operator==(const Matrix &matrix) const;
|
||||
|
||||
// sub
|
||||
double operator[](size_t index) const;
|
||||
double& operator[](size_t index);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user