Commit ff3c418
committed
🎨 Simply
Problem:
- `CX_WRAP` on types returns a callable that returns a `type_identity`. In fact,
`type_identity` is an empty struct, so it's constexpr-usable.
Solution:
- Return a `type_identity<T>` from `CX_WRAP(T)`.
Note:
- `STDX_CT_FORMAT` tests are unaltered and still format type names at compile time.CX_WRAP for types1 parent 8d5072c commit ff3c418
2 files changed
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
| 300 | + | |
304 | 301 | | |
305 | 302 | | |
306 | 303 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
363 | 362 | | |
364 | | - | |
| 363 | + | |
365 | 364 | | |
366 | 365 | | |
367 | 366 | | |
368 | 367 | | |
369 | | - | |
370 | 368 | | |
371 | | - | |
| 369 | + | |
372 | 370 | | |
373 | 371 | | |
374 | 372 | | |
| |||
0 commit comments