#include "common/feature_validator.h"
-#include <boost/scope_exit.hpp>
-
#include <system_info.h>
+#include <memory>
+#include <string>
+
namespace common_installer {
FeatureValidator::FeatureValidator(
bool FeatureValidator::ValidateString(
const std::string& feature, std::string* error) {
char* text = nullptr;
- BOOST_SCOPE_EXIT_ALL(text) {
- free(text);
- };
+ std::unique_ptr<char, decltype(&std::free)> text_deleter(text, std::free);
int ret = system_info_get_platform_string(feature.c_str(), &text);
if (ret != SYSTEM_INFO_ERROR_NONE) {
*error = std::string("Failed to call system_info_get_platform_string()") +