Commit d7ca8d8
detect reference_wrapper by partial specialization
is_ref_wrap previously treated any type with a nested ::type as a wrapper. Specialize on std::reference_wrapper so traits like std::decay are excluded, and keep the check C++14-friendly.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 03fb6c3 commit d7ca8d8
2 files changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | 332 | | |
336 | | - | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
337 | 336 | | |
338 | 337 | | |
339 | 338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
0 commit comments