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 31,979 of 33,346    |
|    Zeljko Vrba to Thomas Richter    |
|    Re: Trick for many identical arguments    |
|    03 Mar 12 01:04:07    |
   
   From: mordor.nospam@fly.srk.fer.hr   
      
   On 2012-03-02, Thomas Richter wrote:   
   > Dear experts,   
   >   
   > is there a nice (template ?) trick to generate functions with variable   
   > number of arguments without using varargs (and hence, no type-checks)?   
   > The use case would be to generate functions for   
   >   
   Why not send a vector:   
      
   void Launch(const std::vector &args)   
      
   (Often I just pass a pointer and the caller creates a local array   
   before the call.)   
      
      
   --   
    [ 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