Skip to content

Bugfix: Allow DeviceAgentVector_impl to be copy constructed.#1291

Draft
Robadob wants to merge 1 commit into
masterfrom
bugfix_davimpl_copy
Draft

Bugfix: Allow DeviceAgentVector_impl to be copy constructed.#1291
Robadob wants to merge 1 commit into
masterfrom
bugfix_davimpl_copy

Conversation

@Robadob
Copy link
Copy Markdown
Member

@Robadob Robadob commented Jul 24, 2025

Tests pass, but requires some discussion before adding this. The 'bug' is unintended behaviour, which may increase memory transfers etc.

Haven't updated test suite yet, bc not sure we actually want to fix this in this manner.

Closes #1290

@Robadob Robadob self-assigned this Jul 24, 2025
Tests pass, but requires some discussion before adding this. The 'bug' is unintended behaviour, which may increase memory transfers etc.

Closes #1290
@Robadob Robadob force-pushed the bugfix_davimpl_copy branch from 5c752a8 to 4bccb93 Compare July 24, 2025 08:41
@ptheywood
Copy link
Copy Markdown
Member

Todo:

  • Add a test which invokes this
  • Open an issue about a larger refactor of device agent vector
  • Add a mention in the docs about using auto for device agent vector being not ideal, use auto& instead or explicit type use

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.

[Bug]: Build error: VariableBufferPair copy constructor deleted (DeviceAgentVector_impl) when using getPopulationData

2 participants