about unpack_sequence customization point
Đang mở
- Ngôn ngữ chính
- C++
- Star
- 509
- Fork
- 94
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.