On Friday, 5 February 2021 at 21:10:21 UTC, Rumbu wrote:
Can some C++ guru translate in D the template below?
I gave up after reading a lot, but I didn't manage to
understand the meaning "&& ..."
template static uint8_t
composite_index_size(Tables const&... tables) { return
(composite_inde
On Saturday, 6 February 2021 at 00:35:12 UTC, Ali Çehreli wrote:
On 2/5/21 1:10 PM, Rumbu wrote:
I gave up after reading a lot, but I didn't manage to
understand the meaning "&& ..."
I think it's the universal reference.
Thank you Ali, but nope, it's "parameter pack folding". This
allows s
On 2/5/21 1:10 PM, Rumbu wrote:
I gave up after reading a lot, but I didn't manage to understand the
meaning "&& ..."
I think it's the universal reference.
template static uint8_t composite_index_size(Tables
const&... tables) { return (composite_index_size(tables.size(),
impl::bits_needed(
Can some C++ guru translate in D the template below?
I gave up after reading a lot, but I didn't manage to understand
the meaning "&& ..."
template static uint8_t
composite_index_size(Tables const&... tables) { return
(composite_index_size(tables.size(),
impl::bits_needed(sizeof...(tables)