Skip to content

Commit 44e1fd0

Browse files
s-kanaevbader
authored andcommitted
[SYCL][NFC] Align type_list definition and declaration to avoid compiler warnings (#983)
Compiling user code with -Wall provides compilation warnings from SYCL headers. In some cases (-Werror or smth like that is enabled) it may not allow to compile user code. ``` CL/sycl/detail/type_list.hpp:34:13: warning: 'type_list' defined as a struct template here but previously declared as a class template; this is valid, but may result in linker errors under the Microsoft C++ ABI [-Wmismatched-tags] template <> struct type_list<> {}; ``` Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
1 parent 807bc9b commit 44e1fd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/CL/sycl/detail/type_list.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ template <typename T> using head_t = typename T::head;
2222
template <typename T> using tail_t = typename T::tail;
2323

2424
// type_list
25-
template <typename... T> class type_list;
25+
template <typename... T> struct type_list;
2626

2727
using empty_type_list = type_list<>;
2828

0 commit comments

Comments
 (0)