File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -89,23 +89,14 @@ namespace std {
89
89
// [refwrap]
90
90
template <typename T>
91
91
class reference_wrapper {
92
- T &FUN(T &x) noexcept { return x; }
93
- void FUN(T &&x) = delete;
94
92
T *ptr;
95
93
public:
96
94
using type = T;
97
95
// [refwrap.const]
98
- #if 0
99
- // decltype doesn't seem to work well enough for this revised version
100
- template <typename U,
101
- typename = enable_if_t<!is_same<reference_wrapper, decay_t<U>>::value &&
102
- !is_void<decltype(FUN(declval<U>()))>::value>>
103
- reference_wrapper(U&& x) //noexcept(noexcept(FUN(declval<U>())))
104
- : ptr(addressof(FUN(forward<U>(x)))) { }
105
- #else
96
+ // LWG 2993 version of constructor does not seem to work in ARM C 5, so stick with
97
+ // this original version.
106
98
reference_wrapper(T &x) noexcept : ptr(addressof(x)) { }
107
99
reference_wrapper(T &&x) = delete;
108
- #endif
109
100
110
101
reference_wrapper(const reference_wrapper &) noexcept = default;
111
102
// [refwrap.assign]
You can’t perform that action at this time.
0 commit comments