File tree Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Omissions are:
16
16
User code should normally be able to include C++14 headers and get
17
17
most expected functionality. (But bear in mind that many C++ library
18
18
features like streams and STL containers are quite heavy and may
19
- not be appropriate for small embnedded use).
19
+ not be appropriate for small embedded use).
20
20
21
21
However, ARM C 5 has only C++11 language support (at least a large subset), and
22
22
no C++11/14 library. For the headers that are totally new in C++11,
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]
@@ -483,7 +474,7 @@ public:
483
474
}
484
475
485
476
template <typename F>
486
- impl::not_fn_t<F> not_fn_t (F&& f)
477
+ impl::not_fn_t<F> not_fn (F&& f)
487
478
{
488
479
return impl::not_fn_t<F>(std::forward<F>(f));
489
480
}
You can’t perform that action at this time.
0 commit comments