Skip to content

Move temporary object into optional instead of copying - #1238

Open
mastadle wants to merge 1 commit into
msgpack:cpp_masterfrom
mastadle:feature/no_copy_optional
Open

mastadle wants to merge 1 commit into
msgpack:cpp_masterfrom
mastadle:feature/no_copy_optional

Conversation

@mastadle

Copy link
Copy Markdown

The adaptors of boost:: and std::optional create a temporary object that was copied instead of moved. This PR fixes this.

@mastadle
mastadle force-pushed the feature/no_copy_optional branch from c3899d1 to c1eb6da Compare November 28, 2026 21:36
@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 80.10%. Comparing base (39cc081) to head (c1eb6da).
⚠️ Report is 64 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    #1238      +/-   ##
==============================================
- Coverage       85.36%   80.10%   -5.27%     
==============================================
  Files              80       80              
  Lines            5099     5851     +752     
  Branches          507      646     +139     
==============================================
+ Hits             4353     4687     +334     
- Misses            746     1164     +418     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
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.

2 participants