-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge Fix the view memory leak and array/view copy/move.
This fixes some of the discussed issues with arrays. The changes are noted in the list below. Some of these points should still be discussed. + Add tests for copy/move of all combinations of array/view. + Add a new exception helper macro for testing array dimensions. + When copying something into a view, do bound checking and ensure what is copied has a compatible amount of data. + When copying into an array, the proper amount of data is allocated and copied over. + When moving a into b, b becomes a and a is invalid afterwards. + Resize and reset for views throws an error. Related PR: #485
- Loading branch information
Showing
3 changed files
with
295 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.