Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Errors [plain_text]
- 3 overloads have similar conversions
- c:\documents and settings\liranuna\desktop\source\mat4.h(55): could be 'const vec4 &mat4::operator [](size_t) const'
- c:\documents and settings\liranuna\desktop\source\mat4.h(51): or 'vec4 &mat4::operator [](size_t)'
- or 'built-in C++ operator[(const float *, int)'
- while trying to match the argument list '(mat4, int)'
- ## code [c++]
- int main()
- {
- mat4 test;
- iWantAFloat(test);
- test[0].w = 2.0f;
- for(int y=0; y<4; ++y)
- printf("%f, %f, %f, %f\n", test[y][0], test[y][1], test[y][2], test[y][3]);
- return 0;
- }
Add Comment
Please, Sign In to add comment