Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use std containers and std::make_unique/shared #2764

Merged
merged 4 commits into from
Jan 16, 2024
Merged

Use std containers and std::make_unique/shared #2764

merged 4 commits into from
Jan 16, 2024

Conversation

daljit46
Copy link
Member

This PR supersedes #2650 and #2651. It replaces the use of custom MR::vector and MR::deque with std::vector and std::deque. It also replaces MR::make_shared and MR::make_unique with std::make_shared and std::make_unique.

@daljit46 daljit46 self-assigned this Nov 30, 2023
@daljit46 daljit46 force-pushed the usestdtypes branch 3 times, most recently from 767c352 to b28af8f Compare November 30, 2023 12:48
@daljit46
Copy link
Member Author

daljit46 commented Jan 16, 2024

Additionally to changes outlined above, this branch now also contains ca36d7b which was necessary for the CI tests to pass with GCC 13.2. The compiler issued a warning (likely a false positive) on using std::vector causing a potential Wstringop-overflow. I replaced this with a std::array<bool, 3> as that's the most appropriate type to use there regardless.

@jdtournier jdtournier merged commit 651aed0 into dev Jan 16, 2024
5 of 6 checks passed
@jdtournier jdtournier deleted the usestdtypes branch January 16, 2024 15:46
Lestropie added a commit that referenced this pull request Jan 23, 2024
Conflicts:
	core/misc/voxel2vector.h

Resolves #2781 with #2764.
Lestropie added a commit that referenced this pull request Jan 23, 2024
Merge commit e467385 failed to address fact that modifications made in dae868c utilised MR::vector whereas 7d81f13 merged in #2764 reverts to use of std::vector.
Lestropie added a commit that referenced this pull request Jan 23, 2024
@Lestropie Lestropie mentioned this pull request Feb 20, 2024
Lestropie added a commit that referenced this pull request Feb 21, 2024
- Remove code within cmd/mrview.cpp that originates from 6417a52 as part of #2689, which was erroneously added in 39240ad.
- Fix compilation of src/gui/mrview/file_open.cpp to coincide with changes in #2764; these were omitted from cherry-picks 39240ad and 0afe37b due to that file having already been removed during the course of #2689.
Lestropie added a commit that referenced this pull request Feb 21, 2024
Resolves changes made to fix unfreed memory in mrmath in #2784 against removal of MR::vector in #2764.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants