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,365 of 33,346   
   Ulrich Eckhardt to All   
   Re: codecvt problem   
   07 Jun 11 03:07:08   
   
   From: ulrich.eckhardt@dominolaser.com   
      
   Daniel Krügler wrote:   
   > Am 06.06.2011 20:50, schrieb Jeff Flinn:   
   >> Vaclav Haisman wrote:   
   >>> Rafał Moniuszko wrote, On 5.6.2011 15:25:   
   >>> [...]   
   >>> Add #include  and do   
   >>> std::memset (&mystate, 0, sizeof(mystate));:   
   >>   
   >> Why not mbstate_t mystate = {0};   
   >   
   > Or rely on aggregate-initialization with an empty initializer:   
   >   
   > mbstate_t mystate = {};   
      
   Just wondering is that the same or are there subtle differences? Also, what   
   about this C++ solution:   
      
     mbstate_t mystate = mbstate_t();   
      
      
   Greetings!   
      
   Uli   
      
   --   
   Domino Laser GmbH   
   Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932   
      
      
         [ 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