#45 Noncontiguous storage cannot be used with preexisting memory

arrays (15)
Vukics, András

The Mercurial version in BZ_DEBUG mode does not allow the creation of non-contiguous blitz::Arrays out of pre-existing data (Precondition failure: Module /usr/local/include/blitz/array-impl.h line 429 Non-contiguous storage used with pre-existing memory), while the CVS version used to allow it.

I think this change in the behaviour should be reverted as it may severely break code based on the CVS version. For an example cf. also my mail: https://sourceforge.net/mailarchive/message.php?msg_id=29336900


    • labels: --> arrays
    • assigned_to: nobody --> julianc
    • status: open --> closed-fixed
  • I have applied the patch provided by Andras that loosens this restriction somewhat, so that non-contiguous Arrays can be made from pre-existing data so long as the user is not requesting blitz to delete the data when the Array is destructed.