Skip to content

Conversation

@asopov-here
Copy link
Contributor

@asopov-here asopov-here commented Aug 4, 2025

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 PR is a first part of the task: olp-cpp-sdk-core.

Relates-To: NLAM-23

@asopov-here asopov-here force-pushed the NLAM-23-std-optional branch 2 times, most recently from f5c4320 to f13d510 Compare August 5, 2025 08:01
@codecov
Copy link

codecov bot commented Aug 5, 2025

Codecov Report

❌ Patch coverage is 82.35294% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.26%. Comparing base (7d33c0b) to head (e63d6ec).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
olp-cpp-sdk-core/src/cache/DefaultCacheImpl.cpp 57.14% 2 Missing and 1 partial ⚠️
...cpp-sdk-core/include/olp/core/porting/optional.hpp 50.00% 2 Missing ⚠️
olp-cpp-sdk-core/src/client/OlpClient.cpp 80.00% 1 Missing ⚠️
olp-cpp-sdk-core/src/client/api/PlatformApi.cpp 66.67% 1 Missing ⚠️
olp-cpp-sdk-core/src/client/api/ResourcesApi.cpp 66.67% 1 Missing ⚠️
olp-cpp-sdk-core/src/http/NetworkResponse.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1623      +/-   ##
==========================================
- Coverage   80.26%   80.26%   -0.00%     
==========================================
  Files         348      349       +1     
  Lines       13932    13937       +5     
  Branches     1489     1492       +3     
==========================================
+ Hits        11182    11186       +4     
- Misses       2149     2151       +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.

@asopov-here asopov-here force-pushed the NLAM-23-std-optional branch 5 times, most recently from 1ed5783 to c998b4e Compare August 5, 2025 17:46
@asopov-here asopov-here marked this pull request as ready for review August 5, 2025 17:49
@asopov-here asopov-here force-pushed the NLAM-23-std-optional branch from c998b4e to 0155340 Compare August 6, 2025 08:06
@asopov-here asopov-here changed the title Draft: Use std::optional is available instead of boost::optional Use std::optional is available instead of boost::optional - part one Aug 6, 2025
@asopov-here asopov-here force-pushed the NLAM-23-std-optional branch from 0155340 to 8ce079c Compare August 6, 2025 08:12
@asopov-here asopov-here force-pushed the NLAM-23-std-optional branch 2 times, most recently from c7d1812 to 0df5afb Compare August 6, 2025 11:09
@mykolamalik mykolamalik changed the title Use std::optional is available instead of boost::optional - part one Use std::optional if available instead of boost::optional - part one Aug 6, 2025
mykolamalik
mykolamalik previously approved these changes Aug 7, 2025
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 first part of the task: olp-cpp-sdk-core.

Relates-To: NLAM-23
Signed-off-by: sopov <ext-alexander.sopov@here.com>
@asopov-here asopov-here force-pushed the NLAM-23-std-optional branch from 1f899bb to e63d6ec Compare August 7, 2025 10:19
@asopov-here asopov-here merged commit a387a38 into master Aug 7, 2025
24 checks passed
@asopov-here asopov-here deleted the NLAM-23-std-optional branch August 7, 2025 11:10
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