The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 05-18-2006
norsk hedensk norsk hedensk is offline
Registered User
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
Quote:
Originally Posted by Corona688
Is it legal to allocate an array of size zero? I know you can in C, it just bumps the size up to the minimum, but in C++, I'm not so sure.

[edit] Occurred to me that it could be something in T crashing, rather than the template class
i thought that might be the problem as well, but it does it even if i set the size to something bigger than zero, it also does it if there is no pointer initiliazation at all.
Reply With Quote