Skip to content

Include type_traits before use of std:: members - #1162

Merged
redboltz merged 1 commit into
msgpack:cpp_masterfrom
jwbee:patch-1
Jul 4, 2025
Merged

redboltz merged 1 commit into
msgpack:cpp_masterfrom
jwbee:patch-1

Conversation

@jwbee

@jwbee jwbee commented Jul 3, 2025

Copy link
Copy Markdown

msgpack-cpp relies on its users to include, directly or indirectly, the <type_traits> header before including msgpack headers. If they don't, it can't compile, because std::remove_volatile will not be declared. This fixes the issue by including it from msgpack, which should be fine now that msgpack-cpp requires C++11.

msgpack-cpp relies on its users to include, directly or indirectly, the <type_traits> header before including msgpack headers. If they don't, it can't compile, because std::remove_volatile will not be declared. This fixes the issue by including it from msgpack, which should be fine now that msgpack-cpp requires C++11.
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.07%. Comparing base (e18398a) to head (cbeb580).
Report is 6 commits behind head on cpp_master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           cpp_master    #1162   +/-   ##
===========================================
  Coverage       86.07%   86.07%           
===========================================
  Files              80       80           
  Lines            5392     5392           
  Branches          503      497    -6     
===========================================
  Hits             4641     4641           
  Misses            751      751           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@redboltz
redboltz merged commit 9b801f0 into msgpack:cpp_master Jul 4, 2025
@redboltz

redboltz commented Jul 4, 2025

Copy link
Copy Markdown
Contributor

Thank you for sending the PR.
Merged.
(CI error is fixed by #1163 )

chromium-full-mirror-sync-agent Bot pushed a commit to chromium-full-mirror/chromiumos_overlays_portage-stable that referenced this pull request Oct 22, 2026
Cherry-pick upstream msgpack-c commit cbeb5805ccc835168cc7e175956de2622b91a4c5
(PR msgpack/msgpack-c#1162).

With libc++ header modularization in LLVM 22+, these headers are no
longer transitively included by <memory> or <tuple>. This causes
downstream compilation failures in consumers like sys-apps/huddly-updater:

    error: no member named 'remove_volatile' in namespace 'std'
      using std::remove_volatile;

Add patch to explicitly include <type_traits> in cpp_config_decl.hpp
and revbump the ebuild to -r1.

UPSTREAM-URL: msgpack/msgpack-c#1162
BUG=b:573044439
TEST=CQ

Change-Id: I5acab27ee7d6f271d1afc63e9093f57402750d99
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/overlays/portage-stable/+/8598833
Reviewed-by: Mike Frysinger <[email protected]>
Tested-by: Deva S (xWF) <[email protected]>
Commit-Queue: Deva S (xWF) <[email protected]>
chromium-full-mirror-sync-agent Bot pushed a commit to chromium-full-mirror/chromiumos_codesearch that referenced this pull request Oct 23, 2026
Cherry-pick upstream msgpack-c commit cbeb5805ccc835168cc7e175956de2622b91a4c5
(PR msgpack/msgpack-c#1162).

With libc++ header modularization in LLVM 22+, these headers are no
longer transitively included by <memory> or <tuple>. This causes
downstream compilation failures in consumers like sys-apps/huddly-updater:

    error: no member named 'remove_volatile' in namespace 'std'
      using std::remove_volatile;

Add patch to explicitly include <type_traits> in cpp_config_decl.hpp
and revbump the ebuild to -r1.

UPSTREAM-URL: msgpack/msgpack-c#1162
BUG=b:573044439
TEST=CQ

Change-Id: I5acab27ee7d6f271d1afc63e9093f57402750d99
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/overlays/portage-stable/+/8598833
Reviewed-by: Mike Frysinger <[email protected]>
Tested-by: Deva S (xWF) <[email protected]>
Commit-Queue: Deva S (xWF) <[email protected]>
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