home bbs files messages ]

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,703 of 33,346   
   Richard to All   
   Re: C++11 Variadic Templates: Format("I    
   28 Nov 11 22:58:16   
   
   dbf0dc9c   
   XPost: comp.lang.c++   
   From: legalize+jeeves@mail.xmission.com   
      
   [Please do not mail me a copy of your followup]   
      
   Andrew Tomazos  spake the secret code   
   <8ce7855d-ade8-4d83-ad8e-9fec2266c72b@b32g2000yqn.googlegroups.com> thusly:   
      
   >I wanted to write a function that takes a string containing a number   
   >of placeholders and a corresponding number of other parameters   
   >(perhaps non-pod) and returns a string with the placeholders replaced   
   >with stringified versions of the parameters:   
   >   
   >For example:   
   >   
   >	Format("I %%% about %%% of %%%","dream", 7, 9)   
   >   
   >...would evaluate to...   
   >   
   >	"I dream about 7 of 9"   
      
   Is there some reason you're reinventing boost.format instead of just   
   using boost.format?   
      
   --   
   "The Direct3D Graphics Pipeline" -- DirectX 9 version available for download   
       
      
         Legalize Adulthood!    
      
      
         [ 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