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

Fixed memory.h: mem_copy, mem_move, mem_compare for pointers to const #1005

Conversation

rolandreichweinbmw
Copy link

Currently, mem_copy() etc. get the constness wrong: "const TPointer" is not a pointer to const data, as intended.

The additional tests illustrate the problem by failing to compile in current ETL.

The change to memory.h fixes it.

@jwellbelove jwellbelove changed the base branch from master to pull-request/#1005-mem_copy-mem_move-mem_compare-for-pointers-to-const January 4, 2025 14:30
@jwellbelove jwellbelove merged commit 599931f into ETLCPP:pull-request/#1005-mem_copy-mem_move-mem_compare-for-pointers-to-const Jan 4, 2025
63 checks passed
jwellbelove added a commit that referenced this pull request Jan 31, 2025
…inters-to-const' into development

# Conflicts:
#	.gitignore
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.

2 participants