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

fixing compilation issue: value usage of fwd declared struct #1823

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

PaulXiCao
Copy link
Contributor

@PaulXiCao PaulXiCao commented Nov 5, 2023

This addresses issue #1822.

The issue has been using a vector where the underlying value type has only been forward declared and defined later on, e.g.

struct NamedOptimizationMethod;
std::vector<std::vector<NamedOptimizationMethod> > optimizationMethods_;
struct NamedOptimizationMethod {
        ext::shared_ptr<OptimizationMethod> optimizationMethod;
        std::string name;
};

Minimal (non-)working example: godbolt

Copy link

boring-cyborg bot commented Nov 5, 2023

Thanks for opening this pull request! It might take a while before we look at it, so don't worry if there seems to be no feedback. We'll get to it.

@CLAassistant
Copy link

CLAassistant commented Nov 5, 2023

CLA assistant check
All committers have signed the CLA.

@lballabio
Copy link
Owner

Thanks! May you have a look at the CLAssistant comment above?

@lballabio lballabio linked an issue Nov 6, 2023 that may be closed by this pull request
@coveralls
Copy link

coveralls commented Nov 6, 2023

Coverage Status

coverage: 72.016%. remained the same
when pulling 0cdb45d on PaulXiCao:iss1822_clang20
into 62c0f14 on lballabio:master.

@PaulXiCao
Copy link
Contributor Author

PaulXiCao commented Nov 6, 2023

Thanks! May you have a look at the CLAssistant comment above?

Hey @lballabio, I just signed the license agreement.

Though I am unsure if the commit user name and email are correctly linked to this GitHub account (and viewable by the CLAssistant). I will just wait and see if the bot interacts with this mr again.

@lballabio
Copy link
Owner

Hmm, you're right, the email associated to the commit is invalid (it's <{ID}+{username}@users.noreply.github.com>).
May I trouble you to force-push a new commit with a valid address, or to open a new PR? Apologies but we need to be strict about licensing issues.

@PaulXiCao
Copy link
Contributor Author

PaulXiCao commented Nov 7, 2023

Totally understand the license thingy. I will fix it on my side, edit the commits and force push.

Edit: All done now.

@lballabio lballabio added this to the Release 1.33 milestone Nov 7, 2023
@lballabio lballabio merged commit 2e39334 into lballabio:master Nov 8, 2023
51 checks passed
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.

Compilation failure of test-suite/optimizers.cpp
4 participants