Skip to content

Commit 72c75f1

Browse files
committed
Merge pull request #450 from ddemidov/issue-449
Add opencl vector types to the list of fundamental types
2 parents 6a6a2aa + 56ca5f2 commit 72c75f1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

include/boost/compute/type_traits/is_fundamental.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ struct is_fundamental : public boost::false_type {};
3333
template<> struct is_fundamental<BOOST_PP_CAT(BOOST_PP_CAT(type, 2), _)> : boost::true_type {}; \
3434
template<> struct is_fundamental<BOOST_PP_CAT(BOOST_PP_CAT(type, 4), _)> : boost::true_type {}; \
3535
template<> struct is_fundamental<BOOST_PP_CAT(BOOST_PP_CAT(type, 8), _)> : boost::true_type {}; \
36-
template<> struct is_fundamental<BOOST_PP_CAT(BOOST_PP_CAT(type, 16), _)> : boost::true_type {};
36+
template<> struct is_fundamental<BOOST_PP_CAT(BOOST_PP_CAT(type, 16), _)> : boost::true_type {}; \
37+
template<> struct is_fundamental<BOOST_PP_CAT(cl_, BOOST_PP_CAT(type, 2))> : boost::true_type {}; \
38+
template<> struct is_fundamental<BOOST_PP_CAT(cl_, BOOST_PP_CAT(type, 4))> : boost::true_type {}; \
39+
template<> struct is_fundamental<BOOST_PP_CAT(cl_, BOOST_PP_CAT(type, 8))> : boost::true_type {}; \
40+
template<> struct is_fundamental<BOOST_PP_CAT(cl_, BOOST_PP_CAT(type, 16))> : boost::true_type {};
3741

3842
BOOST_COMPUTE_DETAIL_DECLARE_FUNDAMENTAL(char)
3943
BOOST_COMPUTE_DETAIL_DECLARE_FUNDAMENTAL(uchar)

0 commit comments

Comments
 (0)