Skip to content

Commit 13fe3f1

Browse files
committed
Use std::optional if available.
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. This PR makes the optional type used configurable. Fix Android build. Relates-To: NLAM-23 Signed-off-by: sopov <[email protected]>
1 parent 9a28842 commit 13fe3f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

olp-cpp-sdk-core/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ set(OLP_SDK_PORTING_HEADERS
131131
./include/olp/core/porting/deprecated.h
132132
./include/olp/core/porting/export.h
133133
./include/olp/core/porting/make_unique.h
134+
./include/olp/core/porting/optional.hpp
134135
./include/olp/core/porting/platform.h
135136
./include/olp/core/porting/shared_mutex.h
136137
./include/olp/core/porting/try_emplace.h

0 commit comments

Comments
 (0)