imporved hyperpoint::operator[] const

This commit is contained in:
Zeno Rogue 2020-05-15 22:53:09 +02:00
parent 033a9099d6
commit f6448a994f
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ struct hyperpoint : array<ld, MAXMDIM> {
struct transmatrix {
ld tab[MAXMDIM][MAXMDIM];
hyperpoint& operator [] (int i) { return (hyperpoint&)tab[i][0]; }
const ld * operator [] (int i) const { return tab[i]; }
const hyperpoint& operator [] (int i) const { return (const hyperpoint&)tab[i]; }
inline friend hyperpoint operator * (const transmatrix& T, const hyperpoint& H) {
hyperpoint z;