Skip to content

Commit 00a83b9

Browse files
committed
Fix bit_cast.
1 parent 23b71cc commit 00a83b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sycl/include/sycl/bit_cast.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@
88

99
#pragma once
1010

11+
#include <type_traits> // for is_trivially_copyable, enable_if_t
12+
#include <version> // defines __cpp_lib_bit_cast
13+
1114
#if __cpp_lib_bit_cast
1215
#include <bit>
1316
#elif !defined(__has_builtin) || !__has_builtin(__builtin_bit_cast)
1417
#include <sycl/detail/memcpy.hpp>
1518
#endif
1619

17-
#include <type_traits> // for is_trivially_copyable, enable_if_t
18-
1920
namespace sycl {
2021
inline namespace _V1 {
2122

0 commit comments

Comments
 (0)