Skip to content

Commit 3f7463b

Browse files
authored
Merge pull request #34 from lewissbaker/patch-4
Remove unused unwrap_reference type-trait from stop_token.hpp
2 parents d2d0438 + dffee19 commit 3f7463b

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

source/stop_token.hpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,6 @@
1414
#endif
1515

1616
namespace std {
17-
18-
#if __cplusplus <= 201703L
19-
// workaround for non-existing unwrap_reference:
20-
template<typename T>
21-
struct unwrap_reference {
22-
using type = T;
23-
};
24-
25-
template<typename T>
26-
struct unwrap_reference<std::reference_wrapper<T>> {
27-
using type = T&;
28-
};
29-
30-
template<class T> using unwrap_reference_t = typename unwrap_reference<T>::type;
31-
#endif
32-
3317
inline void __spin_yield() noexcept {
3418
// TODO: Platform-specific code here
3519
#if defined(__x86_64__) || defined(_M_X64)

0 commit comments

Comments
 (0)