Skip to content

Use const double& for writeScalarData#530

Closed
BenjaminRodenberg wants to merge 2 commits intodevelopfrom
use_const
Closed

Use const double& for writeScalarData#530
BenjaminRodenberg wants to merge 2 commits intodevelopfrom
use_const

Conversation

@BenjaminRodenberg
Copy link
Copy Markdown
Contributor

This change was introduced in be65dce. I first assumed that it was just forgotten in #348. However, in e480aef it was intentionally removed.

In any case we should avoid reintroducing this change via #494. And, if we want to introduce the change, introduce it independently. @fsimonis can you enlighten me?

@BenjaminRodenberg BenjaminRodenberg self-assigned this Sep 26, 2019
@BenjaminRodenberg BenjaminRodenberg mentioned this pull request Sep 26, 2019
5 tasks
BenjaminRodenberg added a commit to Dominanz/precice that referenced this pull request Sep 26, 2019
@fsimonis
Copy link
Copy Markdown
Member

@BenjaminRueth Can you explain the problem?

Passing a single double via const reference is pointless and changing it is backwards-compatible.

@fsimonis fsimonis added this to the Version 2.x.x milestone Nov 26, 2019
@BenjaminRodenberg
Copy link
Copy Markdown
Contributor Author

@fsimonis if it is backwards compatible and passing a double value via a const reference is pointless, everything is fine as it is.

@BenjaminRodenberg BenjaminRodenberg deleted the use_const branch November 28, 2019 17:22
@MakisH MakisH modified the milestones: Version 2.x.x, Version 2.0.0 Jul 20, 2020
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