Hi, some members of the vector class template (e.g. x(), y(), z(), w() and rgb equivalents) don't make sense for certain vector sizes and will fail at runtime. It would be really nice if calling, say, obj.w() for obj of type vector<3, double> would cause a compiler error instead of a runtime one.
Hi, some members of the
vectorclass template (e.g.x(),y(),z(),w()and rgb equivalents) don't make sense for certain vector sizes and will fail at runtime. It would be really nice if calling, say,obj.w()forobjof typevector<3, double>would cause a compiler error instead of a runtime one.