Skip to content

mem: Mark get mem resource proxy const#346

Open
KrishaDeshkool wants to merge 4 commits into
eclipse-score:mainfrom
KrishaDeshkool:mark_get_mem_resource_proxy_const
Open

mem: Mark get mem resource proxy const#346
KrishaDeshkool wants to merge 4 commits into
eclipse-score:mainfrom
KrishaDeshkool:mark_get_mem_resource_proxy_const

Conversation

@KrishaDeshkool

@KrishaDeshkool KrishaDeshkool commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

initially this was created in score but, this was failing here with following err
image

now the internal repo is just an alias to score symbols, creating a PR here again.

mw::com PR : eclipse-score/communication#314

The todo comment on the base class has been open since the method was
introduced. Add a const overload as the new preferred API and mark the
existing non-const one deprecated.

The non-const version stays pure virtual to avoid breaking downstream
consumers that haven't been updated yet; the const version defaults to
nullptr at the base level and will be made pure virtual in a follow-up
once all subclasses are updated.
…n-deprecated overload

The constructor takes a non-const ManagedMemoryResource& so the compiler
would resolve to the deprecated non-const overload. Use std::as_const to
explicitly invoke the new const one.
…bles

MyMemoryResource moves registry registration to the constructor so the
const overload has no side effects. ManagedMemoryResourceTestAttorney
uses std::as_const to avoid hitting the deprecated overload.
@KrishaDeshkool
KrishaDeshkool force-pushed the mark_get_mem_resource_proxy_const branch from ae335f3 to 79e8432 Compare July 6, 2026 16:35
@KrishaDeshkool
KrishaDeshkool temporarily deployed to workflow-approval July 6, 2026 16:35 — with GitHub Actions Inactive
@KrishaDeshkool
KrishaDeshkool temporarily deployed to workflow-approval July 6, 2026 16:35 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown

The created documentation from the pull request is available at: docu-html

@KrishaDeshkool
KrishaDeshkool marked this pull request as ready for review July 14, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant