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,545 of 33,346   
   Dave Abrahams to All   
   Re: Using the STL for scientific program   
   05 Oct 11 14:37:05   
   
   6fc1453c   
   From: dave@boostpro.com   
      
   on Wed Oct 05 2011, piotrN  wrote:   
      
   > On Oct 3, 8:56 pm, brang...@cix.co.uk (Dave Harris) wrote:   
   >> musip...@bawi.org (Seungbeom Kim) wrote (abridged):   
   >   
   >>   
   >> because it's undefined behaviour to instantiate a std::vector on a   
   >> partial type. Where-as with my home-grown vector, I can. The standard   
   >> reserves for itself lots of freedoms and those translate into   
   >> restrictions for users.   
   >>   
   >   
   > Dave,   
   >   
   > It is simple not true. You can instantiate std::vector with incomplete   
   > type.   
      
   You may be "able" to, but not without invoking undefined behavior.   
   Undefined behavior may turn out to be benign, as I guess it was for you,   
   or it may not.   
      
   --   
   Dave Abrahams   
   BoostPro Computing   
   http://www.boostpro.com   
      
      
         [ 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