Skip to content

Include type_traits before use of std:: members #1162

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

Merged
merged 1 commit into from
Jul 4, 2025

Conversation

jwbee
Copy link

@jwbee jwbee commented Jul 3, 2025

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

⚠️ 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
19 of 25 checks passed
@redboltz
Copy link
Contributor

redboltz commented Jul 4, 2025

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

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