Skip to content

Commit 6c6a108

Browse files
amirshavitjszuppe
authored andcommitted
Added a static assert to assure there's no padding between the members
1 parent 04f7d58 commit 6c6a108

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/boost/compute/types/fundamental.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ class vector_type : public detail::vector_type_desc<Scalar, N>
109109

110110
vector_type()
111111
{
112+
BOOST_STATIC_ASSERT(sizeof(Scalar) * N == sizeof(vector_type<Scalar, N>));
112113
}
113114

114115
explicit vector_type(const Scalar scalar)

0 commit comments

Comments
 (0)