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 2ae1d33 commit f4f29a3Copy full SHA for f4f29a3
Framework/Foundation/include/Framework/Endian.h
@@ -33,24 +33,20 @@
33
#define O2_BIG_ENDIAN __BIG_ENDIAN
34
#define O2_LITTLE_ENDIAN __LITTLE_ENDIAN
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