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,363 of 33,346   
   Vaclav Haisman to Jeff Flinn   
   Re: codecvt problem   
   06 Jun 11 15:31:53   
   
   From: v.haisman@sh.cvut.cz   
      
   Jeff Flinn wrote, On 6.6.2011 20:50:   
   > 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};   
   Because the last time I tried that I got a warning about bad/wrong   
   initializer in case of mbstate_t being an int.   
      
   --   
   VH   
      
      
         [ 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