Guest User

Untitled

a guest
Jun 19th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. ## Errors [plain_text]
  2. 3 overloads have similar conversions
  3. c:\documents and settings\liranuna\desktop\source\mat4.h(55): could be 'const vec4 &mat4::operator [](size_t) const'
  4. c:\documents and settings\liranuna\desktop\source\mat4.h(51): or 'vec4 &mat4::operator [](size_t)'
  5. or 'built-in C++ operator[(const float *, int)'
  6. while trying to match the argument list '(mat4, int)'
  7.  
  8. ## code [c++]
  9. int main()
  10. {
  11. mat4 test;
  12.  
  13. iWantAFloat(test);
  14.  
  15. test[0].w = 2.0f;
  16.  
  17. for(int y=0; y<4; ++y)
  18. printf("%f, %f, %f, %f\n", test[y][0], test[y][1], test[y][2], test[y][3]);
  19.  
  20. return 0;
  21. }
Add Comment
Please, Sign In to add comment