diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-04-22 19:22:22 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-04-22 19:22:22 -0400 |
commit | 9feac74a4487f38b9e0742d688579a6332ffa08b (patch) | |
tree | ebefe842238abc56800dc94a1413e88470cc63de /vec_pseudo.h | |
parent | 0fe7c850e2f3a4166a0dc57af5ed11159a154ab6 (diff) | |
download | vecmathlib-9feac74a4487f38b9e0742d688579a6332ffa08b.zip vecmathlib-9feac74a4487f38b9e0742d688579a6332ffa08b.tar.gz |
Align vec_pseudo as if it was a real vector
Diffstat (limited to 'vec_pseudo.h')
-rw-r--r-- | vec_pseudo.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vec_pseudo.h b/vec_pseudo.h index dfad3fc..fb50a32 100644 --- a/vec_pseudo.h +++ b/vec_pseudo.h @@ -49,7 +49,7 @@ namespace vecmathlib { - bvector_t v; + alignas(sizeof(bvector_t)) bvector_t v; boolpseudovec() {} // Can't have a non-trivial copy constructor; if so, objects won't @@ -150,7 +150,7 @@ namespace vecmathlib { - ivector_t v; + alignas(sizeof(ivector_t)) ivector_t v; intpseudovec() {} // Can't have a non-trivial copy constructor; if so, objects won't @@ -471,7 +471,7 @@ namespace vecmathlib { - vector_t v; + alignas(sizeof(vector_t)) vector_t v; realpseudovec() {} // Can't have a non-trivial copy constructor; if so, objects won't |