Skip to content

rename old/porting/optional.hpp into optional.h #1628

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

asopov-here
Copy link
Collaborator

Currently, SDK requires C++11 minimum.
So, boost::optional type is used for optional values. For C++17 and above more convenient is to use std::optional instead. The task NLAM-23 is about making this type configurable. This commit is a renaming of the initially proposed "optional.hpp" into optional.h to avoid clang-format header sorting issue.

Relates-To: NLAM-23

@asopov-here asopov-here force-pushed the NLAM-23-std-optional-2 branch from 70ed365 to b41f6bd Compare August 8, 2025 16:59
Currently, SDK requires C++11 minimum.
So, boost::optional type is used for optional values.
For C++17 and above more convenient is to use std::optional instead.
The task NLAM-23 is about making this type configurable.
This commit is a renaming of the initially proposed "optional.hpp"
into optional.h to avoid clang-format header sorting issue.

Relates-To: NLAM-23
Signed-off-by: sopov <[email protected]>
@asopov-here asopov-here force-pushed the NLAM-23-std-optional-2 branch from b41f6bd to 4ba2ba7 Compare August 8, 2025 17:03
Copy link

codecov bot commented Aug 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.30%. Comparing base (a03183a) to head (c56c2c6).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1628      +/-   ##
==========================================
+ Coverage   80.27%   80.30%   +0.02%     
==========================================
  Files         349      349              
  Lines       13945    13946       +1     
  Branches     1492     1491       -1     
==========================================
+ Hits        11194    11198       +4     
+ Misses       2150     2148       -2     
+ Partials      601      600       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Currently, SDK requires C++11 minimum.
So, boost::optional type is used for optional values.
For C++17 and above more convenient is to use std::optional instead.
The task NLAM-23 is about making this type configurable.
This commit is a renaming of the initially proposed "optional.hpp"
into optional.h to avoid clang-format header sorting issue.

Relates-To: NLAM-23
Signed-off-by: sopov <[email protected]>
@asopov-here asopov-here marked this pull request as ready for review August 8, 2025 17:28
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.

1 participant