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

Fix sonar issues #819

Merged
merged 4 commits into from
May 21, 2024
Merged

Fix sonar issues #819

merged 4 commits into from
May 21, 2024

Conversation

JasonMarechal25
Copy link
Contributor

@JasonMarechal25 JasonMarechal25 commented May 17, 2024

  • Remove FakeWorkerMaqter from tests. Doesn't seems to do anything
  • Remove dynamique allocation of WorkerMaster. Replace with perfect forwarding arguments from reset_master function to make_shared
  • Add return value to non void function

@JasonMarechal25 JasonMarechal25 marked this pull request as ready for review May 17, 2024 09:09
@JasonMarechal25 JasonMarechal25 requested review from tbittar and a team May 17, 2024 09:10
@flomnes
Copy link
Member

flomnes commented May 17, 2024

Linking fails on ubuntu, maybe the template definition is missing from this translation unit ?

antares-xpansion/src/cpp/benders/benders_mpi/BendersMPI.cpp:52: undefined reference to `void BendersBase::reset_master<WorkerMaster, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, int> > >&, std::filesystem::__cxx11::path, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int&, SolverLogManager&, bool, std::shared_ptr<ILogger>&>(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, int> > >&, std::filesystem::__cxx11::path&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, int&&, int&, SolverLogManager&, bool&&, std::shared_ptr<ILogger>&)'

Copy link
Member

@flomnes flomnes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix linking and we're good

@JasonMarechal25 JasonMarechal25 marked this pull request as draft May 17, 2024 12:13
@JasonMarechal25
Copy link
Contributor Author

Linking fails on ubuntu, maybe the template definition is missing from this translation unit ?

antares-xpansion/src/cpp/benders/benders_mpi/BendersMPI.cpp:52: undefined reference to `void BendersBase::reset_master<WorkerMaster, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, int> > >&, std::filesystem::__cxx11::path, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int&, SolverLogManager&, bool, std::shared_ptr<ILogger>&>(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, int> > >&, std::filesystem::__cxx11::path&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, int&&, int&, SolverLogManager&, bool&&, std::shared_ptr<ILogger>&)'

Strange it works on my end

Copy link

@JasonMarechal25 JasonMarechal25 marked this pull request as ready for review May 21, 2024 07:54
@JasonMarechal25 JasonMarechal25 merged commit 2033c5c into develop May 21, 2024
9 checks passed
@JasonMarechal25 JasonMarechal25 deleted the feature/sonar branch May 21, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants