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,362 of 33,346   
   =?UTF-8?B?RGFuaWVsIEtyw7xnbGVy?= to All   
   Re: codecvt problem   
   06 Jun 11 15:31:34   
   
   From: daniel.kruegler@googlemail.com   
      
   Am 06.06.2011 20:50, schrieb Jeff Flinn:   
   > Vaclav Haisman wrote:   
   >> Rafał Moniuszko wrote, On 5.6.2011 15:25:   
   >> [...]   
   >>> ==9451== Conditional jump or move depends on uninitialised value(s)   
   >> I think that this is likely because of uninitialized mystate variable.   
   >> 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 = {};   
      
   Greetings from Bremen,   
      
   Daniel Krügler   
      
      
   --   
         [ 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