We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18a9be8 commit e089b2fCopy full SHA for e089b2f
Framework/Foundation/include/Framework/Endian.h
@@ -35,22 +35,19 @@
35
36
37
template <typename T>
38
- requires std::same_as<T, uint16_t>
39
-inline uint16_t doSwap(uint16_t x)
+inline uint16_t doSwap(std::same_as<uint16_t> auto x)
40
{
41
return swap16_(x);
42
}
43
44
45
- requires std::same_as<T, uint32_t>
46
-inline uint32_t doSwap(uint32_t x)
+inline uint32_t doSwap(std::same_as<uint32_t> auto x)
47
48
return swap32_(x);
49
50
51
52
- requires std::same_as<T, uint64_t>
53
-inline uint64_t doSwap(uint64_t x)
+inline uint64_t doSwap(std::same_as<uint64_t> auto x)
54
55
return swap64_(x);
56
0 commit comments