Class template specialization, operator overloading, Compiler Explorer generating extra qualification error [duplicate]
This question already has answers here: error “extra qualification ‘student::’ on member ‘student’ [-fpermissive] ” (3 answers) extra qualification error in C++ (5 answers) “extra qualification” errors. How warranted by the Standard? (2 answers) Closed 1 hour ago. The community is reviewing whether to reopen this question as of 1 hour ago. A simple templated […]
Compiler Explorer generating compilation error extra qualification within class template specialization, operator overloading [duplicate]
This question already has answers here: error “extra qualification ‘student::’ on member ‘student’ [-fpermissive] ” (3 answers) extra qualification error in C++ (5 answers) “extra qualification” errors. How warranted by the Standard? (2 answers) Closed 34 mins ago. The community is reviewing whether to reopen this question as of 22 mins ago. I’m working on […]
Compiler Explorer generating compilation error extra qualification
I’m working on a simple 4×4 matrix class template that is using an internal flat 1D array representation of a 4×4 matrix. Within the class so far, default constructors, should all be “trivial”, I currently have operator overloading for both operator[]
and operator()
operators for indexing. Direct indexing via []
and using the well-known formula: