Commit ec77571
committed
[libc++][NFC] Remove
Currently, libc++ defines partial specializations of
`__weak_result_type` for function lvalue references. However, they can
never be validly used.
`__weak_result_type` is only used as base classes of these classes:
- `reference_wrapper`, where it's already invalid to instantiate
`reference_wrapper<F&>`;
- `__mem_fn` (the return type of `std::mem_fn`), where the template
argument must be a pointer to member function type;
- `__bind_fn` (the return type of `std::bind`), where the template
argument is already decayed and thus never a reference.
So `__weak_result_type<F&>` is useless and should probably be removed.__weak_result_type<F&> partial specializations1 parent 5dd2b06 commit ec77571
1 file changed
+0
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | 100 | | |
108 | 101 | | |
109 | 102 | | |
| |||
116 | 109 | | |
117 | 110 | | |
118 | 111 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | 112 | | |
123 | 113 | | |
124 | 114 | | |
| |||
142 | 132 | | |
143 | 133 | | |
144 | 134 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | 135 | | |
149 | 136 | | |
150 | 137 | | |
| |||
167 | 154 | | |
168 | 155 | | |
169 | 156 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | 157 | | |
178 | 158 | | |
179 | 159 | | |
| |||
0 commit comments