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

Move function definitions where the smart pointer is complete #164

Merged
merged 1 commit into from
Jun 18, 2022

Conversation

paolafer
Copy link
Contributor

I've noticed that a compilation error is prompted when nexus is used as a third party library by an external software. The reason of the error is that we use a forward declaration of the smart pointer in DetectorConstruction.h and we use the move assignment operator in an inline function in the same header file. However, when the move assignment operator is used, the smart pointer needs to be complete, which is not the case in DetectorConstruction.h, because of forward declaration.
Therefore, this PR moves the definitions of the functions to the .cc file.

When the move assignment operator is used, the smart pointer needs to
be complete, which is not the case in DetectorConstruction.h, where we
use forward declaration.
@paolafer paolafer assigned jmalbos and unassigned jmalbos Apr 27, 2022
@paolafer paolafer requested a review from jmalbos April 28, 2022 08:50
@paolafer paolafer requested a review from gondiaz May 17, 2022 08:42
@paolafer
Copy link
Contributor Author

This PR is becoming urgent, can the designated reviewers (@jmalbos and @gondiaz) deal with it before the end of the week? Otherwise I would ask @gonzaponte to step in if he's available.

@gondiaz
Copy link
Contributor

gondiaz commented Jun 15, 2022 via email

@jmalbos
Copy link
Contributor

jmalbos commented Jun 15, 2022

This PR is becoming urgent, can the designated reviewers (@jmalbos and @gondiaz) deal with it before the end of the week? Otherwise I would ask @gonzaponte to step in if he's available.

I'll do it by Friday.

@paolafer paolafer merged commit 339acc4 into next-exp:master Jun 18, 2022
@paolafer paolafer deleted the fix-smart-ptr branch January 10, 2023 16:47
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