Remove boost dependency
[platform/core/appfw/app-installers.git] / test / smoke_tests / libs / test_tag_plugin.cc
index 653609b..43f06ee 100644 (file)
@@ -2,9 +2,8 @@
 // Use of this source code is governed by an apache 2.0 license that can be
 // found in the LICENSE file.
 
-#include <boost/optional/optional.hpp>
-
 #include <cstring>
+#include <optional>
 #include <string>
 #include <tuple>
 
@@ -15,7 +14,7 @@ namespace ci = common_installer;
 
 namespace {
 
-boost::optional<std::string> CheckArgs(const char* pkgid) {
+std::optional<std::string> CheckArgs(const char* pkgid) {
   if (!pkgid)
     return std::string("Package id is null for tag plugin");
   if (strcmp(pkgid, ci::kTestPackageId) != 0)
@@ -24,7 +23,7 @@ boost::optional<std::string> CheckArgs(const char* pkgid) {
   return {};
 }
 
-boost::optional<std::string> CheckArgs(xmlDocPtr doc, const char* pkgid) {
+std::optional<std::string> CheckArgs(xmlDocPtr doc, const char* pkgid) {
   if (!doc)
     return std::string("XML doc pointer is null for tag plugin");
   return CheckArgs(pkgid);