about unpack_sequence customization point
- Lingua principale
- C++
- Stelle
- 509
- Fork
- 94
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I'm not completely against the way you have customized unpack, but I prefer to overload non-member functions than using some kind of traits.
I would preferred if `std::experimental::apply` could be customizable and so
```
unpack(f)(product_type) <==> std::tuple::apply(f, product_type)
```
This has the advantage that the user can use the `apply` function when it has the function and the product-type.
What about replacing `unpack_sequence` by an overloaded `apply`?
Overloading `apply` has the liability that it is not a high-order function, but we can have an `apply_fn` that is hof.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.