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 32,595 of 33,346   
   =?ISO-8859-1?Q?Vianney_Lan=E7on?= to All   
   Strange convertion   
   19 Oct 12 13:04:58   
   
   From: toto@toto.com   
      
   Hello,   
      
   while compiling our code we found that a wrong constructor was called.   
      
   The code was something like that.   
      
      
   #include    
   struct Toto   
   {   
   Toto(unsigned short a[2]){ x=a[0]; y=a[1];}   
   unsigned short x, y;   
   };   
   void print(const Toto& toto)   
   {   
   std::cout<

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca