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

add missing includes #660

Merged
merged 2 commits into from
Jan 21, 2025
Merged

add missing includes #660

merged 2 commits into from
Jan 21, 2025

Conversation

nim65s
Copy link
Contributor

@nim65s nim65s commented Jan 20, 2025

Summary

Hi,

This fix a couple of missing includes:

In file included from /build/source/testing/include/gz/common/testing/AutoLogFixture.hh:58,
                 from /build/source/src/MaterialDensity_TEST.cc:20:
/build/source/testing/include/gz/common/testing/detail/AutoLogFixture.hh: In member function 'virtual void gz::common::testing::AutoLogFixture::SetUp()':
/build/source/testing/include/gz/common/testing/detail/AutoLogFixture.hh:79:8: error: 'replace' is not a member of 'std'
   79 |   std::replace(this->dataPtr->logFilename.begin(),
      |        ^~~~~~~

and

/build/source/test/performance/logging.cc: In function 'void {anonymous}::PrintStats(const std::string&, const std::map<long unsigned int, std::vector<long unsigned int> >&, uint64_t)':
/build/source/test/performance/logging.cc:79:16: error: 'max_element' is not a member of 'std'; did you mean 'tuple_element'?
   79 |         (*std::max_element(t_result.second.begin(), t_result.second.end()));
      |                ^~~~~~~~~~~

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

to fix:
```cpp
/build/source/test/performance/logging.cc: In function 'void {anonymous}::PrintStats(const std::string&, const std::map<long unsigned int, std::vector<long unsigned int> >&, uint64_t)':
/build/source/test/performance/logging.cc:79:16: error: 'max_element' is not a member of 'std'; did you mean 'tuple_element'?
   79 |         (*std::max_element(t_result.second.begin(), t_result.second.end()));
      |                ^~~~~~~~~~~
```

Signed-off-by: Guilhem Saurel <guilhem.saurel@laas.fr>
to fix:
```cpp
In file included from /build/source/testing/include/gz/common/testing/AutoLogFixture.hh:58,
                 from /build/source/src/MaterialDensity_TEST.cc:20:
/build/source/testing/include/gz/common/testing/detail/AutoLogFixture.hh: In member function 'virtual void gz::common::testing::AutoLogFixture::SetUp()':
/build/source/testing/include/gz/common/testing/detail/AutoLogFixture.hh:79:8: error: 'replace' is not a member of 'std'
   79 |   std::replace(this->dataPtr->logFilename.begin(),
      |        ^~~~~~~
```

Signed-off-by: Guilhem Saurel <guilhem.saurel@laas.fr>
@ahcorde
Copy link
Contributor

ahcorde commented Jan 21, 2025

@ros-pull-request-builder retest this please

@ahcorde ahcorde enabled auto-merge (squash) January 21, 2025 09:45
@mjcarroll
Copy link
Contributor

@osrf-jenkins retest this please

@azeey
Copy link
Contributor

azeey commented Jan 21, 2025

Windows failure tracked in #644

@azeey azeey disabled auto-merge January 21, 2025 21:35
@azeey azeey merged commit be28fbd into gazebosim:gz-common6 Jan 21, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants