MSVC fix-up

This commit is contained in:
Charles J. Cliffe
2015-08-10 17:27:48 -04:00
parent 1fd380d2fb
commit e1016e5cc5
5 changed files with 13 additions and 3 deletions
+3 -2
View File
@@ -25,8 +25,9 @@ namespace CubicVR {
__float& v() { return y; }
// __float operator [] (unsigned i) const { return ((__float *)this)[i]; }
__float& operator [] (unsigned i) { return ((__float *)this)[i]; }
#ifndef _WIN32
__float& operator [] (unsigned i) { return ((__float *)this)[i]; }
#endif
vec2 (__float xi,__float yi) { x = xi; y = yi; }
vec2 () { x = y = 0.0f; }