Repository navigation
Include type_traits before use of std:: members - #1162
Merged
Merged
Conversation
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 ReportAll modified and coverable lines are covered by tests ✅
❗ 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:
|
Contributor
|
Thank you for sending the PR. |
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.