Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c++.moderated    |    Moderated discussion of C++ superhackery    |    33,346 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 33,298 of 33,346    |
|    =?ISO-8859-1?Q?=D6=F6_Tiib?= to Kalle Rutanen    |
|    Re: Grouping parameter packs    |
|    24 Mar 14 06:20:38    |
      From: ootiib@hot.ee              On Sunday, 23 March 2014 15:25:16 UTC+2, Kalle Rutanen wrote:       > The questions I have are:       > * is there, with C++14, a way to notify the compiler of the grouping of       > the template argument packs, as above?       > * if not, has anyone proposed this idea already?       > * if not, can you see flaws in this idea?       > * if not, would you consider it a good idea?              I feel it is not a good idea. Conceptually loose, call feels       hard to understand, code feels cryptic, bad interface and       implementation. Don't want to see it in my code bases, YMMV.              > Here's an example problem: to use perfect forwarding to construct       > in-place both the key and the value of an associative container.              Some article that contains some insight how to group multiple       parameters with tuples:              http://cpptruths.blogspot.com/2012/06/perfect-forwarding-of-parameter-groups       .html                     --        [ See http://www.gotw.ca/resources/clcm.htm for info about ]        [ comp.lang.c++.moderated. First time posters: Do this! ]              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca