Skip to content

Commit 30397fe

Browse files
committed
version header is supported by C++20 or later.
1 parent 00a83b9 commit 30397fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sycl/include/sycl/bit_cast.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
#pragma once
1010

1111
#include <type_traits> // for is_trivially_copyable, enable_if_t
12-
#include <version> // defines __cpp_lib_bit_cast
12+
13+
#if __cplusplus >= 202002L
14+
#include <version> // defines __cpp_lib_bit_cast
15+
#endif
1316

1417
#if __cpp_lib_bit_cast
1518
#include <bit>

0 commit comments

Comments
 (0)