From: Piotr Kosko/Tizen API (PLT) /SRPOL/Engineer/Samsung Electronics
Date: Thu, 16 Jan 2025 07:18:45 +0000 (+0100)
Subject: Change to c++17 and fix issues
X-Git-Tag: accepted/tizen/unified/20250117.072417^0
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F88%2F318388%2F1;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git
Change to c++17 and fix issues
[Verification] Code compiles without errors for armv7l and aarch64
Change-Id: I4cd17f4f2c90f44583ff93a179a35fc0f7b1e934
---
diff --git a/src/bluetooth/bluetooth_le_adapter.cc b/src/bluetooth/bluetooth_le_adapter.cc
index bbd7f3c5..55839091 100644
--- a/src/bluetooth/bluetooth_le_adapter.cc
+++ b/src/bluetooth/bluetooth_le_adapter.cc
@@ -17,13 +17,13 @@
#include "bluetooth/bluetooth_le_adapter.h"
#include "common/logger.h"
+#include "common/optional.h"
#include "common/tools.h"
#include "bluetooth/bluetooth_instance.h"
#include "bluetooth/bluetooth_le_device.h"
#include "bluetooth/bluetooth_privilege.h"
#include "bluetooth/bluetooth_util.h"
-using common::optional;
namespace extension {
namespace bluetooth {
@@ -100,7 +100,7 @@ class BluetoothLEServiceData : public ParsedDataHolder {
return data_;
}
- static optional Construct(const picojson::value& service_data_obj) {
+ static common::optional Construct(const picojson::value& service_data_obj) {
ScopeLogger();
const auto& data = service_data_obj.get(kData);
diff --git a/src/common/common.gypi b/src/common/common.gypi
index c20c5bc3..2763ebee 100644
--- a/src/common/common.gypi
+++ b/src/common/common.gypi
@@ -91,7 +91,7 @@
'-std=c11',
],
'cflags_cc': [
- '-std=c++14',
+ '-std=c++17',
'-Wno-unused-result',
],
'libraries' : [