Ticket #1234: storage_unbounded_copy.patch

File storage_unbounded_copy.patch, 533 bytes (added by heibel@…, 15 years ago)

patch for storage.hpp

  • storage.hpp

     
    338338        bounded_array (const bounded_array &c):
    339339            size_ (c.size_)  {
    340340            // ISSUE elements should be copy constructed here, but we must copy instead as already default constructed
    341             std::copy (c.data_, c.data_ + c.size_, data_);
     341            std::copy (c.begin(), c.end(), begin());
    342342        }
    343343       
    344344        // Resizing