Skip to content

Commit 3eb11f1

Browse files
committed
Zero-init new vector_type
1 parent 6c6a108 commit 3eb11f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/boost/compute/types/fundamental.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,12 @@ class vector_type_desc<Scalar, 16> : public vector_type_desc<Scalar, 8>
104104
template<class Scalar, size_t N>
105105
class vector_type : public detail::vector_type_desc<Scalar, N>
106106
{
107+
typedef detail::vector_type_desc<Scalar, N> base_type;
107108
public:
108109
typedef Scalar scalar_type;
109110

110111
vector_type()
112+
: base_type()
111113
{
112114
BOOST_STATIC_ASSERT(sizeof(Scalar) * N == sizeof(vector_type<Scalar, N>));
113115
}

0 commit comments

Comments
 (0)